mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-16 08:22:22 +02:00
Fix
This commit is contained in:
@@ -65,6 +65,7 @@ module.exports = class ChessCommand extends Command {
|
|||||||
const user = game.exportJson().turn === 'black' ? opponent : msg.author;
|
const user = game.exportJson().turn === 'black' ? opponent : msg.author;
|
||||||
const gameState = game.exportJson();
|
const gameState = game.exportJson();
|
||||||
if (user.bot) {
|
if (user.bot) {
|
||||||
|
prevGameState = gameState;
|
||||||
game.aiMove(3);
|
game.aiMove(3);
|
||||||
} else {
|
} else {
|
||||||
await msg.say(stripIndents`
|
await msg.say(stripIndents`
|
||||||
|
|||||||
Reference in New Issue
Block a user