From bace06ab0c0c80478796cb663248876067be3e53 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 7 Feb 2021 16:30:39 -0500 Subject: [PATCH] Fix Connect-Four Colors --- 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 32bb4cb4..16087943 100644 --- a/commands/games-mp/connect-four.js +++ b/commands/games-mp/connect-four.js @@ -66,7 +66,7 @@ module.exports = class ConnectFourCommand extends Command { const playerOneEmoji = color; let playerTwoEmoji = color === colors.yellow ? colors.red : colors.yellow; try { - const available = Object.keys(colors).filter(clr => color !== clr); + const available = Object.keys(colors).filter(clr => color !== colors[clr]); if (opponent.bot) { playerTwoEmoji = colors[available[Math.floor(Math.random() * available.length)]]; } else {