mirror of
https://github.com/MrTalon63/lets-go-gambling.git
synced 2026-03-09 09:17:58 +01:00
Debug
This commit is contained in:
parent
4f8ed10e34
commit
86a677001b
1 changed files with 2 additions and 0 deletions
|
|
@ -34,6 +34,7 @@ class Bot extends Client {
|
||||||
this.log.info("Loading commands...");
|
this.log.info("Loading commands...");
|
||||||
const commandFiles: string[] = await glob(`${__dirname}/commands/**/*.ts`);
|
const commandFiles: string[] = await glob(`${__dirname}/commands/**/*.ts`);
|
||||||
commandFiles.map(async (fileName: string) => {
|
commandFiles.map(async (fileName: string) => {
|
||||||
|
console.debug(`Registering command: ${fileName}`);
|
||||||
const filePath = path.resolve(fileName);
|
const filePath = path.resolve(fileName);
|
||||||
const file: Command = await import(filePath);
|
const file: Command = await import(filePath);
|
||||||
this.commands.set(file.name, file);
|
this.commands.set(file.name, file);
|
||||||
|
|
@ -43,6 +44,7 @@ class Bot extends Client {
|
||||||
this.log.info("Loading events...");
|
this.log.info("Loading events...");
|
||||||
const eventFiles: string[] = await glob(`${__dirname}/events/**/*.ts`);
|
const eventFiles: string[] = await glob(`${__dirname}/events/**/*.ts`);
|
||||||
eventFiles.map(async (fileName: string) => {
|
eventFiles.map(async (fileName: string) => {
|
||||||
|
console.debug(`Registering event: ${fileName}`);
|
||||||
const filePath = path.resolve(fileName);
|
const filePath = path.resolve(fileName);
|
||||||
const file: Event = await import(filePath);
|
const file: Event = await import(filePath);
|
||||||
this.events.set(file.name, file);
|
this.events.set(file.name, file);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue