This commit is contained in:
Dragon Fire
2020-09-16 15:59:52 -04:00
parent 8e87b4eba7
commit 6a9d91063c
+2 -1
View File
@@ -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
};
});