From 203fedcdee1530a5afaaa66c56491a87ba8c8224 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Mon, 25 May 2020 11:04:07 -0400 Subject: [PATCH] Add timeout on poker round end when no one replies --- commands/games-mp/poker.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/commands/games-mp/poker.js b/commands/games-mp/poker.js index 3687ae48..ba96209a 100644 --- a/commands/games-mp/poker.js +++ b/commands/games-mp/poker.js @@ -220,9 +220,14 @@ module.exports = class PokerCommand extends Command { this.resetHasGoneOnce(players); if (turnRotation.length === 1) { const remainer = players.get(turnRotation[0]); - await msg.say(`${remainer.user} takes the pot.`); + await msg.say(stripIndents` + ${remainer.user} takes the pot. + + _Next game starting in 10 seconds._ + `); remainer.money += turnData.pot; await this.resetGame(msg, players); + await delay(10000); return false; } return true;