mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 05:04:58 +05:00
фикс
This commit is contained in:
parent
1ba2b7665e
commit
23cc5ad0c4
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
});
|
||||
|
|
2
index.js
2
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}`);
|
||||
|
|
Loading…
Reference in a new issue