mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -32,7 +32,7 @@ module.exports = class AkinatorCommand extends Command {
|
||||
let win = false;
|
||||
let forceGuess = false;
|
||||
this.client.games.set(msg.channel.id, { name: this.name });
|
||||
while (aki.guessCount < 3) {
|
||||
while (!aki.guessCount || aki.guessCount < 3) {
|
||||
if (aki.progress >= 70 || forceGuess) {
|
||||
await aki.win();
|
||||
const guess = aki.answers[0];
|
||||
|
||||
Reference in New Issue
Block a user