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