From bcdd7a8a2f096fe5c9a9fcf9ac547ff6ab013581 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Wed, 20 May 2020 11:52:13 -0400 Subject: [PATCH] Fix Back --- commands/games-sp/akinator.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/games-sp/akinator.js b/commands/games-sp/akinator.js index dc2630c9..b807237d 100644 --- a/commands/games-sp/akinator.js +++ b/commands/games-sp/akinator.js @@ -61,9 +61,10 @@ module.exports = class AkinatorCommand extends Command { if (!aki.answers || aki.currentStep >= 78) forceGuess = true; const answers = aki.answers.map(answer => answer.toLowerCase()); answers.push('end'); + if (aki.currentStep + 2 > 1) answers.push('back'); await msg.say(stripIndents` **${aki.currentStep + 2}.** ${aki.question} (${Math.round(Number.parseInt(aki.progress, 10))}%) - ${aki.answers.join(' | ')} | Back | End + ${aki.answers.join(' | ')}${aki.currentStep + 2 > 1 ? ` | Back` : ''} | End `); const filter = res => res.author.id === msg.author.id && answers.includes(res.content.toLowerCase()); const msgs = await msg.channel.awaitMessages(filter, {