From 6b089270470d1343057ff72ae4c4138a20738621 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 17 Apr 2021 10:16:59 -0400 Subject: [PATCH] Fix --- commands/games-sp/20-questions.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/commands/games-sp/20-questions.js b/commands/games-sp/20-questions.js index ff49aa13..7fb844c6 100644 --- a/commands/games-sp/20-questions.js +++ b/commands/games-sp/20-questions.js @@ -28,7 +28,6 @@ module.exports = class TwentyQuestionsCommand extends Command { try { const startURL = await this.initialize(); let question = await this.startGame(startURL); - let referer = question.url; let win = null; this.client.games.set(msg.channel.id, { name: this.name }); while (win === null) { @@ -55,7 +54,7 @@ module.exports = class TwentyQuestionsCommand extends Command { } const answer = question.answers[answers.indexOf(choice)]; question = await this.nextQuestion(answer.href, question.url); - if (question.win) { + if (typeof question.win !== 'undefined') { win = question.win; break; }