mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 13:14: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" })
|
const game = new TTT({ language: "ru" })
|
||||||
game.handleMessage(message);
|
game.handleMessage(message);
|
||||||
|
|
||||||
game.on("win", data => {
|
game.on("win", async (data) => {
|
||||||
message.sendT("fun/number:WON", {
|
message.sendT("fun/number:WON", {
|
||||||
winner: data.winner.displayName
|
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.
|
// Then we load events, which will include our message and ready event.
|
||||||
const evtFiles = await readdir("./events/");
|
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) => {
|
evtFiles.forEach((file) => {
|
||||||
const eventName = file.split(".")[0];
|
const eventName = file.split(".")[0];
|
||||||
client.logger.log(`Loading Event: ${eventName}`);
|
client.logger.log(`Loading Event: ${eventName}`);
|
||||||
|
|
Loading…
Reference in a new issue