diff --git a/commands/games-sp/akinator.js b/commands/games-sp/akinator.js index c0e87f28..fe17a32a 100644 --- a/commands/games-sp/akinator.js +++ b/commands/games-sp/akinator.js @@ -46,8 +46,15 @@ module.exports = class AkinatorCommand extends Command { let forceGuess = false; this.client.games.set(msg.channel.id, { name: this.name }); while (timesGuessed < 3) { - if (ans === null) await aki.start(); - else await aki.step(ans); + if (ans === null) { + await aki.start(); + } else { + try { + await aki.step(ans); + } catch { + await aki.step(ans); + } + } if (!aki.answers || aki.currentStep >= 78) forceGuess = true; const answers = aki.answers.map(answer => answer.toLowerCase()); answers.push('end'); diff --git a/package.json b/package.json index 46cddfee..9d6d0361 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "114.16.3", + "version": "114.16.4", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {