mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 14:20:51 +02:00
Fix
This commit is contained in:
@@ -119,7 +119,7 @@ module.exports = class CardsAgainstHumanityCommand extends Command {
|
||||
}
|
||||
const player = parseInt(chosen.first().content, 10);
|
||||
++players.get(player).points;
|
||||
if (players.get(player).points > maxPts) winner = players.get(player).user;
|
||||
if (players.get(player).points >= maxPts) winner = players.get(player).user;
|
||||
}
|
||||
this.playing.delete(msg.channel.id);
|
||||
if (!winner) return msg.say('See you next time!');
|
||||
|
||||
Reference in New Issue
Block a user