mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 06:10:49 +02:00
Fix lint
This commit is contained in:
@@ -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
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user