mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-22 01:57:54 +02:00
Fix AI Play not showing up
This commit is contained in:
@@ -122,7 +122,8 @@ module.exports = class ConnectFourCommand extends Command {
|
|||||||
});
|
});
|
||||||
if (!turn.size) {
|
if (!turn.size) {
|
||||||
await msg.say('Sorry, time is up! I\'ll pick their move for them.');
|
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;
|
userTurn = !userTurn;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "126.6.7",
|
"version": "126.6.8",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Xiao.js",
|
"main": "Xiao.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user