mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-23 18:05:01 +02:00
Delete game after load
This commit is contained in:
@@ -75,6 +75,7 @@ module.exports = class ChessCommand extends Command {
|
|||||||
blackTime = data.blackTime;
|
blackTime = data.blackTime;
|
||||||
whitePlayer = data.playerColor === 'white' ? msg.author : opponent;
|
whitePlayer = data.playerColor === 'white' ? msg.author : opponent;
|
||||||
blackPlayer = data.playerColor === 'black' ? msg.author : opponent;
|
blackPlayer = data.playerColor === 'black' ? msg.author : opponent;
|
||||||
|
await this.client.redis.del(`chess-${msg.author.id}`);
|
||||||
} else {
|
} else {
|
||||||
game = new jsChess.Game();
|
game = new jsChess.Game();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user