Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit 3a6b3b3

Browse files
committed
fix: Fix commands not being found
1 parent 5076fe8 commit 3a6b3b3

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/events/interactionCreate.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export default class ReadyEvent implements GatewayEvent {
1111
const params = interaction.options;
1212

1313
const commandObj = kogBot.discord_client.commands.list.find(cmd => cmd.instance.name === receivedCommand);
14+
console.log(commandObj);
1415

1516
if (!commandObj) {
1617
interaction.reply("Command not found bro");

src/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ class DBot extends Client {
2727
this.REST.setToken(this.kogBot.environment.discord.client_token);
2828

2929
if (!kogBot.ci_workflow) {
30-
if (process.argv.includes('--deploy')) {
31-
this.commands.deploy().then(() => console.log("Commands deployed."));
32-
}
30+
this.commands.deploy().then(() => console.log("Commands deployed."));
3331
this.gatewayEvents.listen().then(() => console.log("Listening to events."));
3432
this.login(this.kogBot.environment.discord.client_token).then(() => console.log("Logged in, welcome!"));
3533
}

0 commit comments

Comments
 (0)