diff --git a/commands/games-mp/dots-and-boxes.js b/commands/games-mp/dots-and-boxes.js index 0dc54b34..723837ac 100644 --- a/commands/games-mp/dots-and-boxes.js +++ b/commands/games-mp/dots-and-boxes.js @@ -56,7 +56,7 @@ module.exports = class DotsAndBoxesCommand extends Command { const choice = res.content; if (choice.toLowerCase() === 'end') return true; const matched = choice.match(/([0-9]+)\-([0-9]+)/); - if (!match) return false; + if (!matched) return false; let first = Number.parseInt(matched[1], 10); let second = Number.parseInt(matched[2], 10); if (first === second) return false;