From a7d06fe39839d0683d3b696796df69410c892317 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Tue, 19 Sep 2017 21:25:20 +0000 Subject: [PATCH] Beep --- 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 a373ea2a..ceff96ad 100644 --- a/commands/games/akinator.js +++ b/commands/games/akinator.js @@ -19,7 +19,7 @@ module.exports = class AkinatorCommand extends Command { if (this.sessions.has(msg.channel.id)) return msg.say('Only one game may be occuring per channel.'); try { let ans = null; - this.sessions.set(msg.channel.id, { progress: null }); + this.sessions.set(msg.channel.id, {}); while (this.sessions.get(msg.channel.id).progress < 99 && ++this.sessions.get(msg.channel.id).step <= 80) { const data = ans === null ? await this.createSession(msg.channel) : await this.progress(msg.channel, ans); const answers = data.answers.map(answer => answer.answer.toLowerCase());