mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-05 00:06:42 +02:00
Delete game after load
This commit is contained in:
@@ -75,6 +75,7 @@ module.exports = class ChessCommand extends Command {
|
||||
blackTime = data.blackTime;
|
||||
whitePlayer = data.playerColor === 'white' ? msg.author : opponent;
|
||||
blackPlayer = data.playerColor === '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