diff --git a/commands/games-mp/poker.js b/commands/games-mp/poker.js index 0e7e755c..88046eaa 100644 --- a/commands/games-mp/poker.js +++ b/commands/games-mp/poker.js @@ -65,7 +65,7 @@ module.exports = class PokerCommand extends Command { }); } let winner = null; - let rotation = players.map(p => p.id); + const rotation = players.map(p => p.id); while (!winner) { for (const player of players.values()) { if (players.has(player.id)) continue; diff --git a/commands/games-sp/minesweeper.js b/commands/games-sp/minesweeper.js index 0cbb2d2c..493994ba 100644 --- a/commands/games-sp/minesweeper.js +++ b/commands/games-sp/minesweeper.js @@ -3,7 +3,7 @@ const BombSweeper = require('bombsweeper.js'); const { stripIndents } = require('common-tags'); const { removeFromArray, verify } = require('../../util/Util'); const nums = ['1️⃣', '2️⃣', '3️⃣', '4️⃣', '5️⃣', '6️⃣', '7️⃣', '8️⃣', '9️⃣', '🔟']; -const turnRegex = /(flag )?(\d+), ?(\d+)/i; +const turnRegex = /^(flag )?(\d+), ?(\d+)/i; module.exports = class MinesweeperCommand extends Command { constructor(client) {