From e7f089bec7a0d65e40ad1ff06238cd90b4da0921 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 23 Jan 2021 22:00:15 -0500 Subject: [PATCH] Delete game after load --- commands/games-mp/chess.js | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/games-mp/chess.js b/commands/games-mp/chess.js index 79930521..01f44584 100644 --- a/commands/games-mp/chess.js +++ b/commands/games-mp/chess.js @@ -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(); }