From 1d53791c37c152983ed2146d6fbb62ea0c77c38f Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Tue, 19 Jan 2021 06:33:26 -0500 Subject: [PATCH] Fix AI Play not showing up --- commands/games-mp/connect-four.js | 3 ++- package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/commands/games-mp/connect-four.js b/commands/games-mp/connect-four.js index d313a8c0..c04e3e46 100644 --- a/commands/games-mp/connect-four.js +++ b/commands/games-mp/connect-four.js @@ -122,7 +122,8 @@ module.exports = class ConnectFourCommand extends Command { }); if (!turn.size) { await msg.say('Sorry, time is up! I\'ll pick their move for them.'); - AIEngine.playAI('hard'); + i = AIEngine.playAI('hard'); + lastMove = i + 1; userTurn = !userTurn; continue; } diff --git a/package.json b/package.json index 1061d3c4..98e48888 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "126.6.7", + "version": "126.6.8", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {