mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-18 05:49:49 +02:00
Fix
This commit is contained in:
@@ -85,7 +85,7 @@ module.exports = class LieSwatterCommand extends Command {
|
|||||||
else if (falseOptions.includes(res.content.toLowerCase())) answer = false;
|
else if (falseOptions.includes(res.content.toLowerCase())) answer = false;
|
||||||
return { answer, id: res.author.id };
|
return { answer, id: res.author.id };
|
||||||
});
|
});
|
||||||
const correct = answers.filter(answer => answer === question.answer);
|
const correct = answers.filter(answer => answer.answer === question.answer);
|
||||||
for (const answer of correct) {
|
for (const answer of correct) {
|
||||||
const player = pts.get(answer.id);
|
const player = pts.get(answer.id);
|
||||||
if (correct[0].id === answer.id) player.pts += 75;
|
if (correct[0].id === answer.id) player.pts += 75;
|
||||||
|
|||||||
Reference in New Issue
Block a user