diff --git a/commands/Fun/tictactoe.js b/commands/Fun/tictactoe.js index 0e36eaf0..58b538b5 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); - this.client.once("win", data => { + game.once("win", data => { console.log(data.winner + " wins the TicTacToe game!"); console.log(data.loser + " loses the TicTacToe game!"); });