This commit is contained in:
Dragon Fire
2021-01-23 15:25:16 -05:00
parent 3ca277ae9d
commit 2fc01c699e
+1 -1
View File
@@ -62,7 +62,7 @@ module.exports = class ChessCommand extends Command {
while (!game.exportJson().checkMate) {
const user = game.exportJson().turn === 'black' ? opponent : msg.author;
const gameState = game.exportJson();
if (opponent.bot && !userTurn) {
if (user.bot) {
game.aiMove(3);
} else {
await msg.say(stripIndents`