Skip to content

Commit e81a74e

Browse files
committed
🌟 feat: Add new config variables (repel, server Id, moderator role Ids and cache on start)
1 parent 10e6b4a commit e81a74e

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

‎.env.example‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
11
DISCORD_TOKEN="" # Your bot token
22
CLIENT_ID="" # Your bot's application ID
3+
4+
SERVER_ID=
5+
MODERATORS_ROLE_IDS= # Comma separated list of role IDs that are Moderators(Mods, Admins, etc)
6+
7+
FETCH_AND_SYNC_MESSAGES= # if true, the bot will fetch and sync messages from pubic channels on startup
8+
9+
REPEL_LOG_CHANNEL_ID= # Channel ID where the bot will log repel actions

‎src/env.ts‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ export const config = {
1616
token: requireEnv('DISCORD_TOKEN'),
1717
clientId: requireEnv('CLIENT_ID'),
1818
},
19+
repel: {
20+
repelLogChannelId: requireEnv('REPEL_LOG_CHANNEL_ID'),
21+
repelRoleId: requireEnv('REPEL_ROLE_ID'),
22+
},
23+
fetchAndSyncMessages: requireEnv('FETCH_AND_SYNC_MESSAGES') === 'true',
24+
serverId: requireEnv('SERVER_ID'),
25+
moderatorsRoleIds: requireEnv('MODERATORS_ROLE_IDS')
26+
? requireEnv('MODERATORS_ROLE_IDS').split(',')
27+
: [],
1928
// Add more config sections as needed:
2029
// database: {
2130
// url: requireEnv('DATABASE_URL'),

0 commit comments

Comments
 (0)