Skip to content

Commit 0e09848

Browse files
committed
feat: add environment configuration files for development and production
1 parent 48f31b9 commit 0e09848

4 files changed

Lines changed: 48 additions & 9 deletions

File tree

.env.development

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Development Environment Configuration
2+
# Public values - safe to commit to repository
3+
# These are Discord IDs for your development/test server
4+
5+
# Discord Server ID (your dev server)
6+
SERVER_ID=1403539983821963274
7+
8+
# Channel IDs (from your dev server)
9+
GUIDES_CHANNEL_ID=1426998962635804712
10+
REPEL_LOG_CHANNEL_ID=1403540596035027045
11+
12+
# Role IDs (from your dev server)
13+
REPEL_ROLE_ID=1403545113904414842
14+
MODERATORS_ROLE_IDS=1428151937534005379
15+
16+
# Note: DISCORD_TOKEN & CLIENT_ID should be in .env.local (not committed)

.env.example

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
1-
DISCORD_TOKEN="" # Your bot token
2-
CLIENT_ID="" # Your bot's application ID
1+
# Local Environment Variables (Secrets)
2+
# Copy this file to .env.local and fill in your actual values
3+
# .env.local is gitignored and should NEVER be committed
34

4-
SERVER_ID= # Discord Server ID where the bot will operate
5-
MODERATORS_ROLE_IDS= # Comma separated list of role IDs that are Moderators(Mods, Admins, etc)
5+
# Discord Bot Token & Application ID (REQUIRED)
6+
# Get this from: https://discord.com/developers/applications
7+
DISCORD_TOKEN=your-bot-token-here
8+
CLIENT_ID=your-bot-application-id
69

7-
REPEL_LOG_CHANNEL_ID= # Channel ID where the bot will log repel actions
8-
REPEL_ROLE_ID= # Role ID assigned to users who can use the repel command
9-
GUIDES_CHANNEL_ID="" # The ID of the channel where guides will be posted
10+
# Optional: Override any public config values for local testing
11+
# Uncomment and modify as needed:
12+
# SERVER_ID=override-server-id
13+
# CLIENT_ID=override-client-id
14+
# GUIDES_CHANNEL_ID=override-channel-id

.env.production

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Production Environment Configuration
2+
# Public values - safe to commit to repository
3+
# These are Discord IDs that are publicly visible anyway
4+
5+
# Discord Server ID
6+
SERVER_ID=your-prod-server-id
7+
8+
# Channel IDs
9+
GUIDES_CHANNEL_ID=your-prod-guides-channel-id
10+
REPEL_LOG_CHANNEL_ID=your-prod-repel-log-channel-id
11+
12+
# Role IDs
13+
REPEL_ROLE_ID=your-prod-repel-role-id
14+
MODERATORS_ROLE_IDS=your-prod-moderator-role-id-1,your-prod-moderator-role-id-2
15+
16+
# Note: DISCORD_TOKEN & CLIENT_ID should be in .env.local (not committed)

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ yarn-debug.log*
1212
yarn-error.log*
1313

1414
# Env files
15-
!.env.example
16-
.env
1715
.env.local
1816
.env.*.local
17+
# Allow environment-specific configs (public, non-secret)
18+
!.env.development
19+
!.env.production
20+
!.env.example
1921

2022
# guides tracker
2123
guides-tracker.json

0 commit comments

Comments
 (0)