From 3f2fbaded27bc26c302f46f0c96f2cec6afa52d4 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Tue, 15 Sep 2020 10:22:12 -0400 Subject: [PATCH] Don't send two messages at the end of aki --- commands/games-sp/akinator.js | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/commands/games-sp/akinator.js b/commands/games-sp/akinator.js index 15667f8a..c0c0e034 100644 --- a/commands/games-sp/akinator.js +++ b/commands/games-sp/akinator.js @@ -119,9 +119,9 @@ module.exports = class AkinatorCommand extends Command { win = false; break; } else { - const exMsg = timesGuessed >= 3 || forceGuess ? 'I give up.' : 'I can keep going!'; - await msg.say(`Hmm... Is that so? ${exMsg}`); - if (timesGuessed >= 3 || forceGuess) { + if (timesGuessed < 3 && !forceGuess) { + await msg.say('Hmm... Is that so? I can keep going!'); + } else { win = true; break; } diff --git a/package.json b/package.json index b8830de4..625ba3be 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "119.24.1", + "version": "119.24.2", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {