From 31044d8a9f2eda6ca1f2b08202dad8290ce9c249 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Sun, 2 Jan 2022 14:01:18 +0500 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/Fun/tictactoe.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/commands/Fun/tictactoe.js b/commands/Fun/tictactoe.js index 8b58a31e..9860ad8f 100644 --- a/commands/Fun/tictactoe.js +++ b/commands/Fun/tictactoe.js @@ -22,6 +22,8 @@ class TicTacToe extends Command { game.handleMessage(message); game.on("win", async (data) => { + if (data.winner.id === "AI") return; + message.sendT("fun/number:WON", { winner: data.winner.displayName });