Skip to content

Commit 518e9d6

Browse files
authored
feat: improve repel command (#964)
* feat: improve repel command added a new option to send a message to the mods timeout target before message deletion code refractor ignore inaccessible channels in scan improve log embeds to display more details (dyno style) * Add explicit type predicate
1 parent 9a41a6f commit 518e9d6

File tree

4 files changed

+366
-181
lines changed

4 files changed

+366
-181
lines changed

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,4 @@ REPEL_ROLE_ID=1002411741776461844 # The ID of the role that is used for MiniMods
4444
REPEL_DEFAULT_DELETE_COUNT=20 # The number of messages to delete when using the repel command
4545
REPEL_LOG_CHANNEL_ID=1403558160144531589 # The channel where the repel command logs are sent
4646
REPEL_DEFAULT_TIMEOUT=6 # Default timeout for the repel command in HOURS
47+
MODERATORS_ROLE_IDS=465222496891699200 # Comma-separated list of moderator role IDs

src/env.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,7 @@ export const REPEL_DEFAULT_DELETE_COUNT =
4949
export const { REPEL_LOG_CHANNEL_ID } = process.env;
5050
export const REPEL_DEFAULT_TIMEOUT =
5151
Number.parseInt(process.env.REPEL_DEFAULT_TIMEOUT) || 6;
52+
53+
export const MODERATORS_ROLE_IDS = process.env.MODERATORS_ROLE_IDS
54+
? process.env.MODERATORS_ROLE_IDS.split(',')
55+
: undefined;

0 commit comments

Comments
 (0)