mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-25 14:44:58 +05:00
test win event
This commit is contained in:
parent
5319acdec6
commit
b2e8e6ba13
1 changed files with 5 additions and 0 deletions
|
@ -20,6 +20,11 @@ class TicTacToe extends Command {
|
|||
async run(message, args) {
|
||||
const game = new TTT({ language: "ru" })
|
||||
game.handleMessage(message);
|
||||
|
||||
this.client.once("win", data => {
|
||||
console.log(data.winner + " wins the TicTacToe game!");
|
||||
console.log(data.loser + " loses the TicTacToe game!");
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue