Skip to content

Commit

Permalink
test error
Browse files Browse the repository at this point in the history
  • Loading branch information
Epic428 committed Nov 21, 2023
1 parent f2f9188 commit a0738e5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
}

Expand Down
5 changes: 0 additions & 5 deletions src/utils/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ export class Commands {
private commands: Collection<string, Collection<string, string>>;

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<string, Collection<string, string>>(Object.values(CommandType).map(type => [type, new Collection<string, string>()]));

Expand Down
4 changes: 2 additions & 2 deletions src/utils/interactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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")))
Expand Down

0 comments on commit a0738e5

Please sign in to comment.