From 27b5f92940a0a5d3121644182d5642b20671c456 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Tue, 19 May 2020 08:58:32 -0400 Subject: [PATCH] Fix --- commands/games-sp/akinator.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/games-sp/akinator.js b/commands/games-sp/akinator.js index 71134a63..df442121 100644 --- a/commands/games-sp/akinator.js +++ b/commands/games-sp/akinator.js @@ -50,9 +50,9 @@ module.exports = class AkinatorCommand extends Command { win = false; break; } else { - const exMsg = aki.guessCount > 3 || forceGuess ? 'I give up.' : 'I can keep going!'; + const exMsg = aki.guessCount <= 3 || forceGuess ? 'I give up.' : 'I can keep going!'; await msg.say(`Hmm... Is that so? ${exMsg}`); - if (aki.guessCount > 3 || forceGuess) { + if (aki.guessCount <= 3 || forceGuess) { win = true; break; } @@ -67,7 +67,7 @@ module.exports = class AkinatorCommand extends Command { const answers = aki.answers.map(answer => answer.toLowerCase()); answers.push('end'); await msg.say(stripIndents` - **${++aki.currentStep}.** ${aki.question} (${Math.round(Number.parseInt(aki.progress, 10))}%) + **${++aki.currentStep + 1}.** ${aki.question} (${Math.round(Number.parseInt(aki.progress, 10))}%) ${aki.answers.join(' | ')} `); const filter = res => res.author.id === msg.author.id && answers.includes(res.content.toLowerCase());