From e82b6d3887c0824f28dcc21eb78ab81689daa01a Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 17 Jan 2021 10:25:41 -0500 Subject: [PATCH] Fix --- commands/games-mp/connect-four.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/commands/games-mp/connect-four.js b/commands/games-mp/connect-four.js index 78dba569..b0aa3f4d 100644 --- a/commands/games-mp/connect-four.js +++ b/commands/games-mp/connect-four.js @@ -52,12 +52,12 @@ module.exports = class ConnectFourCommand extends Command { const current = this.client.games.get(msg.channel.id); if (current) return msg.reply(`Please wait until the current game of \`${current.name}\` is finished.`); this.client.games.set(msg.channel.id, { name: this.name }); - const playerOneEmoji = colors[color]; - let playerTwoEmoji = color === 'yellow' ? colors.red : colors.yellow; + const playerOneEmoji = color; + let playerTwoEmoji = color === colors.yellow ? colors.red : colors.yellow; try { const available = Object.keys(colors).filter(clr => { - if (color === 'blue' && clr === 'purple') return false; - if (color === 'purple' && clr === 'blue') return false; + if (color === colors.blue && clr === colors.purple) return false; + if (color === colors.purple && clr === colors.blue) return false; return color !== clr; }); if (opponent.bot) {