-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
45 lines (33 loc) · 1.56 KB
/
Copy path.env.example
File metadata and controls
45 lines (33 loc) · 1.56 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
# ================================
# 🤖 Bot Configuration
# ================================
# Discord bot token for authentication
BOT_TOKEN= # Your Discord bot token here
# Optional array of guild ids where the bot should register commands
GUILDS= # Commas seperated list of guilds enabled for usage
# ================================
# 📝 Logging Configuration
# ================================
# Enable or disable general logging (true/false)
ENABLE_LOGGING=false
# Channel ID for general error logging
ERROR_LOGGING_CHANNEL= # Channel ID for error logs
# Channel ID for command usage logging
COMMAND_LOGGING_CHANNEL= # Channel ID for command logs
# ================================
# 🌐 API Configuration
# ================================
# Base URL for external API endpoints (designed with https://predbdotovh.github.io/pre-api/ in mind, not tested with other APIs)
API_URL=https://predb.club/api/v1 # Your API base URL here
# Maximum subscriptions per user (0 = unlimited, default = 15)
MAX_SUBSCRIPTIONS_PER_USER=15
# ================================
# 🔄 Polling Fallback Configuration
# ⚠️ WARNING: API has a hard limit of 30 requests per minute.
# ⚠️ Polling will automatically adjust the interval and pace requests to stay within this limit.
# ================================
# Enable polling fallback when WebSocket is unavailable (true/false)
POLLING_ENABLED=false
# Base interval (in seconds) for polling.
# This is the minimum interval the app will wait between polls; it will auto-increase if needed to respect API limits.
POLLING_INTERVAL_SECONDS=60