mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -57,6 +57,7 @@ class Akinator {
|
||||
this.currentStep++;
|
||||
this.progress = body.progression;
|
||||
this.question = body.question;
|
||||
if (!this.question) this.akiWin = false;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user