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}`);