This commit is contained in:
Dragon Fire
2020-04-21 22:57:58 -04:00
parent fd4121c5c5
commit f1a4e9f9d5
+1 -1
View File
@@ -85,7 +85,7 @@ module.exports = class LieSwatterCommand extends Command {
else if (falseOptions.includes(res.content.toLowerCase())) answer = false;
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) {
const player = pts.get(answer.id);
if (correct[0].id === answer.id) player.pts += 75;