Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,7 @@ ONBOARDING_CHANNEL=
JOIN_LOG_CHANNEL=
INTRO_CHANNEL=
INTRO_ROLE=
REPEL_ROLE_NAME=MiniMod # The name of the role that is used for MiniMods
REPEL_DELETE_COUNT=2 # The number of messages to delete when using the repel command
REPEL_ROLE_ID=1002411741776461844 # The ID of the role that is used for MiniMods
REPEL_DEFAULT_DELETE_COUNT=20 # The number of messages to delete when using the repel command
REPEL_LOG_CHANNEL_ID=1403558160144531589 # The channel where the repel command logs are sent
REPEL_DEFAULT_TIMEOUT=6 # Default timeout for the repel command in HOURS
6 changes: 6 additions & 0 deletions src/enums.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,9 @@ export enum Months {
November = 10,
December = 11,
}

/* https://discord.com/developers/docs/topics/opcodes-and-status-codes#json-json-error-codes */
export enum DiscordAPIErrorCode {
UnknownMember = 10007,
UnknownUser = 10013,
}
9 changes: 6 additions & 3 deletions src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ export const { JOIN_LOG_CHANNEL } = process.env;
export const { INTRO_CHANNEL } = process.env;
export const { INTRO_ROLE } = process.env;

export const { REPEL_ROLE_NAME } = process.env;
export const REPEL_DELETE_COUNT =
Number.parseInt(process.env.REPEL_DELETE_COUNT) || 2;
export const { REPEL_ROLE_ID } = process.env;
export const REPEL_DEFAULT_DELETE_COUNT =
Number.parseInt(process.env.REPEL_DEFAULT_DELETE_COUNT) || 20;
export const { REPEL_LOG_CHANNEL_ID } = process.env;
export const REPEL_DEFAULT_TIMEOUT =
Number.parseInt(process.env.REPEL_DEFAULT_TIMEOUT) || 6;
Loading
Loading