This commit is contained in:
Dragon Fire
2021-01-23 22:04:26 -05:00
parent 83d59bb59c
commit 099057732f
+1 -1
View File
@@ -70,7 +70,7 @@ module.exports = class ChessCommand extends Command {
const verification = await verify(msg.channel, msg.author);
if (verification) {
const data = JSON.parse(resumeGame);
game = new jsChess.Game(resumeGame.fen);
game = new jsChess.Game(data.fen);
whiteTime = data.whiteTime;
blackTime = data.blackTime;
whitePlayer = data.playerColor === 'white' ? msg.author : opponent;