Delete game after load

This commit is contained in:
Dragon Fire
2021-01-23 22:00:15 -05:00
parent 1748f0c57b
commit e7f089bec7
+1
View File
@@ -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();
}