mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-20 14:00:22 +02:00
Fix
This commit is contained in:
@@ -297,9 +297,9 @@ module.exports = class PokerCommand extends Command {
|
|||||||
async resetGame(msg, players, deck) {
|
async resetGame(msg, players, deck) {
|
||||||
deck.reset();
|
deck.reset();
|
||||||
for (const player of players.values()) {
|
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.`);
|
await msg.say(`${player.user} has been kicked.`);
|
||||||
players.delete(player.id);
|
console.log(players.delete(player.id));
|
||||||
} else {
|
} else {
|
||||||
player.currentBet = 0;
|
player.currentBet = 0;
|
||||||
player.hand = [];
|
player.hand = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user