Make sure typos don't get accepted

This commit is contained in:
Dragon Fire
2021-01-16 17:50:27 -05:00
parent 4226f74f6a
commit 5d1d0de26f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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) {