From 4677a34fe7cfb1962f70b34bd4b3e14849fbdfe1 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Tue, 19 Sep 2017 21:35:10 +0000 Subject: [PATCH] Break --- commands/games/akinator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/games/akinator.js b/commands/games/akinator.js index 6fcdbace..181a460e 100644 --- a/commands/games/akinator.js +++ b/commands/games/akinator.js @@ -22,7 +22,7 @@ module.exports = class AkinatorCommand extends Command { this.sessions.set(msg.channel.id, { progress: null }); while (this.sessions.get(msg.channel.id).progress < 99) { const data = ans === null ? await this.createSession(msg.channel) : await this.progress(msg.channel, ans); - if (this.sessions.get(msg.channel.id).step <= 80) break; + if (this.sessions.get(msg.channel.id).step >= 80) break; const answers = data.answers.map(answer => answer.answer.toLowerCase()); await msg.say(stripIndents` **${++data.step}.** ${data.question}