This commit is contained in:
Dragon Fire
2024-04-22 15:53:06 -04:00
parent f128099e87
commit 770fe2c4ab
2 changed files with 5 additions and 1 deletions
+4 -1
View File
@@ -68,7 +68,10 @@ module.exports = class AkinatorCommand extends Command {
} else {
await aki.step(ans);
}
if (aki.guessed) {
if (!aki.question) {
win = false;
break;
} else if (aki.guessed) {
const guess = aki.guessed;
timesGuessed++;
const embed = new EmbedBuilder()
+1
View File
@@ -57,6 +57,7 @@ class Akinator {
this.currentStep++;
this.progress = body.progression;
this.question = body.question;
if (!this.question) this.akiWin = false;
return this;
}