This commit is contained in:
Daniel Odendahl Jr
2018-07-09 18:38:18 +00:00
parent 1b67dd0f43
commit c9cdb122a6
4 changed files with 6 additions and 5 deletions
+3 -2
View File
@@ -19,9 +19,10 @@ module.exports = class SuperpowerCommand extends Command {
const { body } = await request
.get('http://powerlisting.wikia.com/api/v1/Articles/AsSimpleJson/')
.query({ id: article });
const data = body.sections[0];
return msg.reply(stripIndents`
Your superpower is... **${body.title}**!
_${shorten(body.sections[0].content.map(section => section.text).join('\n\n'), 1950)}_
Your superpower is... **${data.title}**!
_${shorten(data.content.map(section => section.text).join('\n\n'), 1950)}_
`);
} catch (err) {
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
+1 -1
View File
@@ -18,7 +18,7 @@ module.exports = class CowSayCommand extends Command {
key: 'text',
prompt: 'What text would you like the cow to say?',
type: 'string',
max: 1500
max: 500
},
{
key: 'type',
+1 -1
View File
@@ -18,7 +18,7 @@ module.exports = class CowThinkCommand extends Command {
key: 'text',
prompt: 'What text would you like the cow to think?',
type: 'string',
max: 1500
max: 500
},
{
key: 'type',
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "84.1.0",
"version": "84.1.1",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {