From 045c0a852502fe11f67e842b37cf316a4d431a4f Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Thu, 21 May 2020 16:58:05 -0400 Subject: [PATCH] Fix akinator question number --- commands/games-sp/akinator.js | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/commands/games-sp/akinator.js b/commands/games-sp/akinator.js index bfcbbde2..df06da8c 100644 --- a/commands/games-sp/akinator.js +++ b/commands/games-sp/akinator.js @@ -60,13 +60,13 @@ module.exports = class AkinatorCommand extends Command { await aki.step(ans); } } - if (!aki.answers || aki.currentStep >= 78) forceGuess = true; + if (!aki.answers || aki.currentStep >= 79) forceGuess = true; const answers = aki.answers.map(answer => answer.toLowerCase()); answers.push('end'); - if (aki.currentStep + 2 > 1) answers.push('back'); + if (aki.currentStep > 0) answers.push('back'); await msg.say(stripIndents` - **${aki.currentStep + 2}.** ${aki.question} (${Math.round(Number.parseInt(aki.progress, 10))}%) - ${aki.answers.join(' | ')}${aki.currentStep + 2 > 1 ? ` | Back` : ''} | End + **${aki.currentStep + 1}.** ${aki.question} (${Math.round(Number.parseInt(aki.progress, 10))}%) + ${aki.answers.join(' | ')}${aki.currentStep > 0 ? ` | Back` : ''} | End `); const filter = res => res.author.id === msg.author.id && answers.includes(res.content.toLowerCase()); const msgs = await msg.channel.awaitMessages(filter, { diff --git a/package.json b/package.json index 489ad1ac..faf40750 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "114.17.1", + "version": "114.17.2", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {