mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-22 18:29:14 +02:00
Fix
This commit is contained in:
@@ -70,7 +70,7 @@ module.exports = class ChessCommand extends Command {
|
|||||||
const verification = await verify(msg.channel, msg.author);
|
const verification = await verify(msg.channel, msg.author);
|
||||||
if (verification) {
|
if (verification) {
|
||||||
const data = JSON.parse(resumeGame);
|
const data = JSON.parse(resumeGame);
|
||||||
game = new jsChess.Game(resumeGame.fen);
|
game = new jsChess.Game(data.fen);
|
||||||
whiteTime = data.whiteTime;
|
whiteTime = data.whiteTime;
|
||||||
blackTime = data.blackTime;
|
blackTime = data.blackTime;
|
||||||
whitePlayer = data.playerColor === 'white' ? msg.author : opponent;
|
whitePlayer = data.playerColor === 'white' ? msg.author : opponent;
|
||||||
|
|||||||
Reference in New Issue
Block a user