This commit is contained in:
Dragon Fire
2020-11-22 11:40:31 -05:00
parent 26af8afbd4
commit 6ccb3f2d16
+2 -2
View File
@@ -297,9 +297,9 @@ module.exports = class PokerCommand extends Command {
async resetGame(msg, players, deck) {
deck.reset();
for (const player of players.values()) {
if (player.money <= 0 || player.strikes >= 3) {
if (player.money <= 100 || player.strikes >= 3) {
await msg.say(`${player.user} has been kicked.`);
players.delete(player.id);
console.log(players.delete(player.id));
} else {
player.currentBet = 0;
player.hand = [];