From 6e0b33a922ae092931c66b94459e8e14da9674a6 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 17 Jan 2021 10:30:19 -0500 Subject: [PATCH] Fix --- commands/games-mp/connect-four.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/games-mp/connect-four.js b/commands/games-mp/connect-four.js index b0aa3f4d..097919e3 100644 --- a/commands/games-mp/connect-four.js +++ b/commands/games-mp/connect-four.js @@ -74,9 +74,9 @@ module.exports = class ConnectFourCommand extends Command { ); const filter = res => { if (res.author.id !== opponent.id) return false; - const hasEmoji = new RegExp(`^(?:${emojiRegex().source})$`).test(value); + const hasEmoji = new RegExp(`^(?:${emojiRegex().source})$`).test(res.content); return hasEmoji || available.includes(res.content.toLowerCase()); - } + }; const p2Color = await msg.channel.awaitMessages(filter, { max: 1, time: 30000