-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
24 lines (17 loc) · 769 Bytes
/
.env.example
File metadata and controls
24 lines (17 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Discord Bot Token (get from https://discord.com/developers/applications)
DISCORD_BOT_TOKEN=your_bot_token_here
# === Alert Destination (choose ONE) ===
# Option 1: Send alerts via DM (enable Developer Mode, right-click your profile, Copy ID)
DISCORD_USER_ID=your_user_id_here
# Option 2: Send alerts to a server channel (right-click channel, Copy ID)
# DISCORD_CHANNEL_ID=your_channel_id_here
# CPU usage threshold percentage (default: 80)
CPU_THRESHOLD=80
# How often to check CPU usage in seconds (default: 60)
CHECK_INTERVAL=60
# Cooldown period between alerts in seconds (default: 300 = 5 minutes)
COOLDOWN_PERIOD=300
# HTTP server port for manual triggers (default: 8080)
HTTP_PORT=8080
# Command prefix for Discord commands (default: !)
COMMAND_PREFIX=!