This commit is contained in:
JonnyBro 2022-01-01 23:50:33 +05:00
parent 1ba2b7665e
commit 23cc5ad0c4
2 changed files with 2 additions and 2 deletions

View file

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

View file

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