-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.discord.example
More file actions
41 lines (32 loc) · 1.84 KB
/
.env.discord.example
File metadata and controls
41 lines (32 loc) · 1.84 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
# Discord Snipe ELO bot — copy to .env or set in Railway
# https://discord.com/developers/applications — Bot token, Application ID.
# Privileged intent: enable Message Content Intent. Optional: Server Members Intent for richer graph nicknames.
# Bot role needs Attach Files so /headtohead can post the matrix image in the embed.
DISCORD_BOT_TOKEN=
DISCORD_APPLICATION_ID=
# Optional bootstrap for one server: guild id + snipe channel id.
# DISCORD_GUILD_ID=
# DISCORD_SNIPE_CHANNEL_ID=
# Optional bootstrap for multiple servers: comma-separated guildId:channelId pairs.
# DISCORD_GUILD_SNIPE_CHANNELS=111111111111111111:222222222222222222,333333333333333333:444444444444444444
# If omitted, moderators can set the channel after deploy with /setsnipechannel.
# If you used DISCORD_GUILD_ID + DISCORD_SNIPE_CHANNEL_ID before, legacy DB rows migrate under that guild.
# Separate SQLite file from Slack bot (recommended if both run). Mount a volume so bounty + ELO survive redeploys.
DISCORD_DB_PATH=./snipe-elo-discord.sqlite3
# Same ELO rules as Slack
ELO_K_FACTOR=32
INITIAL_RATING=1000
# Daily bounty: midnight Eastern by default; first time each mark is sniped that day = 2× ELO for that pair (marks who snipe others: normal ELO).
# BOUNTY_ENABLED=true
# BOUNTY_TIMEZONE=UTC
# BOUNTY_TOP_N=3
SNIPE_REQUIRE_IMAGE=true
# Max humans on the leaderboard (bots excluded). Omit, 0, or negative = show everyone.
# LEADERBOARD_TOP_N=50
LEADERBOARD_PAGE_SIZE=12
LEADERBOARD_TITLE=ELO Leaderboard
# Snipe graph viewer (same Railway service as the bot): public URL users open (no trailing slash).
# GRAPH_PUBLIC_BASE_URL=https://your-service.up.railway.app
# Optional: browser session length after a valid code redeem (ms). Default 45 minutes.
# GRAPH_VIEW_SESSION_MS=2700000
# Undo: use the /removesnipe slash command with the bot confirmation message ID (Developer Mode → Copy ID).