Don't send two messages at the end of aki

This commit is contained in:
Dragon Fire
2020-09-15 10:22:12 -04:00
parent d2249b41a2
commit 3f2fbaded2
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -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;
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "119.24.1",
"version": "119.24.2",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {