mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Make sure typos don't get accepted
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user