This commit is contained in:
Dragon Fire
2021-01-23 22:14:39 -05:00
parent 099057732f
commit a15d4080bd
+2 -2
View File
@@ -73,8 +73,8 @@ module.exports = class ChessCommand extends Command {
game = new jsChess.Game(data.fen);
whiteTime = data.whiteTime;
blackTime = data.blackTime;
whitePlayer = data.playerColor === 'white' ? msg.author : opponent;
blackPlayer = data.playerColor === 'black' ? msg.author : opponent;
whitePlayer = data.color === 'white' ? msg.author : opponent;
blackPlayer = data.color === 'black' ? msg.author : opponent;
await this.client.redis.del(`chess-${msg.author.id}`);
} else {
game = new jsChess.Game();