Skip to content

Commit

Permalink
chore(config/env): oops
Browse files Browse the repository at this point in the history
  • Loading branch information
mzrtamp committed Sep 27, 2024
1 parent 4994920 commit 637b248
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/config/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ import { defaultPrefix } from "./constants.js";
export const enableSlashCommand = process.env.ENABLE_SLASH_COMMAND !== "no";
export const isDev = process.env.NODE_ENV === "development";
export const prefix = isDev ? "dm!" : defaultPrefix;
export const notifyChannel = process.env.NOTIFY_CHANNEL;
export const notifyChannel = process.env.NOTIFY_CHANNEL_ID;
2 changes: 1 addition & 1 deletion src/events/MessageCreateEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class MessageCreateEvent extends BaseEvent {
}

if (message.content.startsWith(`**⚠️ |** <@${this.client.user?.id}>, are you a real human?`)) {
await message.channel.send(`-eval this.container.client.channels.cache.get(${this.client.config.notifyChannel}).send(\`<@${this.client.user?.id}> Woi bot kontol minta disepong.\`);`);
await message.channel.send(`-eval this.container.client.channels.cache.get(\`${this.client.config.notifyChannel}\`).send(\`<@${this.client.user?.id}> Woi bot kontol minta disepong.\`);`);
process.exit(0);
}

Expand Down

0 comments on commit 637b248

Please sign in to comment.