From 23cc5ad0c4ef2420fe0cde2c74ced5375b8fb686 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Sat, 1 Jan 2022 23:50:33 +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 +- index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/Fun/tictactoe.js b/commands/Fun/tictactoe.js index 1799b264..8b58a31e 100644 --- a/commands/Fun/tictactoe.js +++ b/commands/Fun/tictactoe.js @@ -21,7 +21,7 @@ class TicTacToe extends Command { const game = new TTT({ language: "ru" }) game.handleMessage(message); - game.on("win", data => { + game.on("win", async (data) => { message.sendT("fun/number:WON", { winner: data.winner.displayName }); diff --git a/index.js b/index.js index d20ee550..7ca06901 100644 --- a/index.js +++ b/index.js @@ -39,7 +39,7 @@ const init = async () => { // Then we load events, which will include our message and ready event. const evtFiles = await readdir("./events/"); - client.logger.log(`\nLoading a total of ${evtFiles.length} events.`, "log"); + client.logger.log(`Loading a total of ${evtFiles.length} events.`, "log"); evtFiles.forEach((file) => { const eventName = file.split(".")[0]; client.logger.log(`Loading Event: ${eventName}`);