From a25b96eca6289ce34430f21d8d6e1faeca063e7f Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 7 Nov 2020 11:02:06 -0500 Subject: [PATCH] Fix --- commands/random-res/superpower.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/commands/random-res/superpower.js b/commands/random-res/superpower.js index bd5821cb..906370d9 100644 --- a/commands/random-res/superpower.js +++ b/commands/random-res/superpower.js @@ -31,7 +31,7 @@ module.exports = class SuperpowerCommand extends Command { const article = await this.fetchSuperpower(id); return msg.reply(stripIndents` Your superpower is... **${article.title}**! - _${article.abstract}_ + _${article.abstract.split('1')[0].trim()}_ `); } catch (err) { return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`); @@ -55,7 +55,10 @@ module.exports = class SuperpowerCommand extends Command { async fetchSuperpower(id) { const { body } = await request .get('https://powerlisting.fandom.com/api/v1/Articles/Details') - .query({ ids: id }); + .query({ + ids: id, + abstract: 500 + }); return body.items[id.toString()]; } };