mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-15 00:12:38 +02:00
Fix
This commit is contained in:
@@ -68,7 +68,10 @@ module.exports = class AkinatorCommand extends Command {
|
|||||||
} else {
|
} else {
|
||||||
await aki.step(ans);
|
await aki.step(ans);
|
||||||
}
|
}
|
||||||
if (aki.guessed) {
|
if (!aki.question) {
|
||||||
|
win = false;
|
||||||
|
break;
|
||||||
|
} else if (aki.guessed) {
|
||||||
const guess = aki.guessed;
|
const guess = aki.guessed;
|
||||||
timesGuessed++;
|
timesGuessed++;
|
||||||
const embed = new EmbedBuilder()
|
const embed = new EmbedBuilder()
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ class Akinator {
|
|||||||
this.currentStep++;
|
this.currentStep++;
|
||||||
this.progress = body.progression;
|
this.progress = body.progression;
|
||||||
this.question = body.question;
|
this.question = body.question;
|
||||||
|
if (!this.question) this.akiWin = false;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user