mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 14:20:51 +02:00
Fix
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user