mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-08 07:11:49 +02:00
Fix
This commit is contained in:
@@ -88,8 +88,8 @@ module.exports = class LieSwatterCommand extends Command {
|
||||
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;
|
||||
else player.pts += 50;
|
||||
if (correct[0].id === answer.id) player.points += 75;
|
||||
else player.points += 50;
|
||||
}
|
||||
await msg.say(stripIndents`
|
||||
It was... **${question.answer ? 'true' : 'a lie'}**!
|
||||
|
||||
Reference in New Issue
Block a user