This commit is contained in:
Dragon Fire
2020-05-19 08:50:51 -04:00
parent 1c2aaea747
commit aaefbb3146
+1 -1
View File
@@ -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];