From a0738e554cb5d0b1a5d90ebd50b96f79f97d87f6 Mon Sep 17 00:00:00 2001 From: James Moore Date: Tue, 21 Nov 2023 14:01:52 -0500 Subject: [PATCH] test error --- src/index.ts | 1 - src/utils/commands.ts | 5 ----- src/utils/interactions.ts | 4 ++-- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/index.ts b/src/index.ts index 0c2d444..9ac4d53 100644 --- a/src/index.ts +++ b/src/index.ts @@ -12,7 +12,6 @@ const getCommands = () => commands; const getInteractions = () => interactions; if (!process.env.DISCORD_TOKEN) { - console.log(process.env.DISCORD_TOKEN) throw new Error("DISCORD_TOKEN environment variable missing.") } diff --git a/src/utils/commands.ts b/src/utils/commands.ts index f87fe99..184a41c 100644 --- a/src/utils/commands.ts +++ b/src/utils/commands.ts @@ -9,11 +9,6 @@ export class Commands { private commands: Collection>; constructor() { - console.log(process.env.DB_HOST) - console.log(process.env.DB_NAME) - console.log(process.env.DB_PASSWORD) - console.log(process.env.DB_PORT) - console.log(process.env.DB_USER) this.database = new Database(`{host: ${process.env.DB_HOST}, database: ${process.env.DB_NAME}, password: ${process.env.DB_PASSWORD}, port: ${process.env.DB_PORT}, user: ${process.env.DB_USER}}`); this.commands = new Collection>(Object.values(CommandType).map(type => [type, new Collection()])); diff --git a/src/utils/interactions.ts b/src/utils/interactions.ts index de06945..01bec88 100644 --- a/src/utils/interactions.ts +++ b/src/utils/interactions.ts @@ -40,12 +40,12 @@ export class Interactions { } })) - readdir("./dist/src/buttons") + /*readdir("./dist/src/buttons") .then(r => r.filter(file => file.endsWith(".js"))) .then(files => files.forEach(async file => { const button: Button = (await import(`../buttons/${file}`)).default; if (button.id) buttons.set(button.id, button); - })) + }))*/ readdir("./dist/src/menus") .then(r => r.filter(file => file.endsWith(".js")))