forked from harshendram/Advanced-Discord-Bot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
86 lines (71 loc) · 3.2 KB
/
.env.example
File metadata and controls
86 lines (71 loc) · 3.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# 🤖 Advanced Discord Open Source Bot - Environment Configuration
# Copy this file to .env and fill in your actual values
# ==============================================
# 🔑 Discord Bot Configuration
# ==============================================
# Your Discord bot token from https://discord.com/developers/applications
DISCORD_TOKEN=your_bot_token_here
# Your Discord application client ID
CLIENT_ID=your_bot_client_id_here
# Optional: Guild ID for testing (removes the need to wait for global command propagation)
# Leave empty for global commands in production
GUILD_ID=your_test_guild_id_here
# ==============================================
# 🗄️ Database Configuration
# ==============================================
# MongoDB connection string - Get free tier from https://www.mongodb.com/atlas
MONGODB_URI=mongodb+srv://username:password@cluster.mongodb.net/discord-bot?retryWrites=true&w=majority
# ==============================================
# 🤖 AI Configuration
# ==============================================
# Google Gemini API key from https://makersuite.google.com/app/apikey
GEMINI_API_KEY=your_gemini_api_key_here
# ==============================================
# 🔌 Internal API
# ==============================================
BOT_API_ENABLED=false
BOT_API_PORT=3210
BOT_API_BASE_URL=http://localhost:3210
# Discord OAuth for dashboard/API
DISCORD_OAUTH_CLIENT_ID=your_oauth_client_id
DISCORD_OAUTH_CLIENT_SECRET=your_oauth_client_secret
DISCORD_OAUTH_REDIRECT_URI=http://localhost:3210/auth/discord/callback
# Session secret for API sessions
SESSION_SECRET=replace_with_a_long_random_string
# Optional: redirect back to dashboard after OAuth
DASHBOARD_REDIRECT_URL=http://localhost:3000
# Optional: comma-separated owner IDs with global access
OWNER_IDS=123456789012345678,234567890123456789
# ==============================================
# 🌐 Optional: Deployment Configuration
# ==============================================
# Environment mode
NODE_ENV=development
# Port for health checks (useful for Render, Railway, etc.)
PORT=3000
# ==============================================
# 📊 Optional: Feature Toggles
# ==============================================
# Enable/disable specific features (true/false)
ENABLE_AI_ASSISTANT=true
ENABLE_POINTS_SYSTEM=true
ENABLE_XP_SYSTEM=true
ENABLE_TICKET_SYSTEM=true
ENABLE_MODERATION=true
# ==============================================
# 🔌 Plugin System Configuration
# ==============================================
# URL for the plugin marketplace registry (JSON file)
# See REGISTRY-SETUP.md for setting up your own registry
# Leave empty to use built-in default plugins
PLUGIN_REGISTRY_URL=
# ==============================================
# 🚀 Quick Setup Guide:
# ==============================================
# 1. Create Discord Application: https://discord.com/developers/applications
# 2. Create MongoDB Database: https://www.mongodb.com/atlas (free tier)
# 3. Get Gemini API Key: https://makersuite.google.com/app/apikey
# 4. Copy this file to .env and fill in your values
# 5. Run: npm install && node deploy-commands.js && npm start
# 6. Invite bot to your server with proper permissions
# ==============================================