From 6a9d91063c018f90b93a7098670f7fa1c3c6b92f Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Wed, 16 Sep 2020 15:59:52 -0400 Subject: [PATCH] Fix lint --- commands/games-mp/quiz-duel.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/games-mp/quiz-duel.js b/commands/games-mp/quiz-duel.js index 052e2454..aeccd7b0 100644 --- a/commands/games-mp/quiz-duel.js +++ b/commands/games-mp/quiz-duel.js @@ -83,8 +83,9 @@ module.exports = class QuizDuelCommand extends Command { } } const answers = msgs.map(res => { + const choice = choices.indexOf(res.content.toUpperCase()); return { - answer: question.answers[choices.indexOf(res.content.toUpperCase())], + answer: question.answers[choice], id: res.author.id }; });