From 86a677001bafd9ea71e36ecaaa6955d574c1dd4e Mon Sep 17 00:00:00 2001 From: Marcin Czop Date: Tue, 19 Nov 2024 22:28:35 +0100 Subject: [PATCH] Debug --- src/client.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client.ts b/src/client.ts index 156fa2a..b5189a9 100644 --- a/src/client.ts +++ b/src/client.ts @@ -34,6 +34,7 @@ class Bot extends Client { this.log.info("Loading commands..."); const commandFiles: string[] = await glob(`${__dirname}/commands/**/*.ts`); commandFiles.map(async (fileName: string) => { + console.debug(`Registering command: ${fileName}`); const filePath = path.resolve(fileName); const file: Command = await import(filePath); this.commands.set(file.name, file); @@ -43,6 +44,7 @@ class Bot extends Client { this.log.info("Loading events..."); const eventFiles: string[] = await glob(`${__dirname}/events/**/*.ts`); eventFiles.map(async (fileName: string) => { + console.debug(`Registering event: ${fileName}`); const filePath = path.resolve(fileName); const file: Event = await import(filePath); this.events.set(file.name, file);