diff --git a/commands/random/superpower.js b/commands/random/superpower.js index 1b97636d..387780c0 100644 --- a/commands/random/superpower.js +++ b/commands/random/superpower.js @@ -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!`); diff --git a/commands/text-edit/cow-say.js b/commands/text-edit/cow-say.js index d79fe0be..35295080 100644 --- a/commands/text-edit/cow-say.js +++ b/commands/text-edit/cow-say.js @@ -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', diff --git a/commands/text-edit/cow-think.js b/commands/text-edit/cow-think.js index 7d16d627..d5563903 100644 --- a/commands/text-edit/cow-think.js +++ b/commands/text-edit/cow-think.js @@ -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', diff --git a/package.json b/package.json index 1a219dea..08910adc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "84.1.0", + "version": "84.1.1", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {