From 45f8034ec1e878ab1422ac44445b7ca3b6d726a0 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 17 Jan 2021 10:23:48 -0500 Subject: [PATCH] Fix --- commands/games-mp/connect-four.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/games-mp/connect-four.js b/commands/games-mp/connect-four.js index 10dd8e20..78dba569 100644 --- a/commands/games-mp/connect-four.js +++ b/commands/games-mp/connect-four.js @@ -35,7 +35,7 @@ module.exports = class ConnectFourCommand extends Command { prompt: `What color do you want to be? Either an emoji or one of ${list(Object.keys(colors), 'or')}.`, type: 'default-emoji|string', validate: color => { - const hasEmoji = new RegExp(`^(?:${emojiRegex().source})$`).test(value); + const hasEmoji = new RegExp(`^(?:${emojiRegex().source})$`).test(color); if (!hasEmoji && !colors[color.toLowerCase()]) { return `Please enter an emoji or one of the following: ${list(Object.keys(colors), 'or')}.`; }