-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
34 lines (28 loc) · 1.17 KB
/
.env.example
File metadata and controls
34 lines (28 loc) · 1.17 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
# Discord bot token from https://discord.com/developers/applications
DISCORD_TOKEN=put-your-bot-token-here
# Your server/channel from the request.
DISCORD_GUILD_ID=487398800353263616
LOG_CHANNEL_ID=807177293943275530
SIGN_CHANNEL_ID=1396738538229469184
BOOK_CHANNEL_ID=1397140960902647879
# Optional: after the first run, set this to the MSG SPY/logging bot user ID.
# Leave blank to translate messages from any bot/webhook in LOG_CHANNEL_ID except this bot.
SOURCE_BOT_IDS=
# Free/default translation provider: run LibreTranslate locally on the same machine.
# Hosted LibreTranslate endpoints can be used too, but may require an API key.
LIBRETRANSLATE_URL=http://127.0.0.1:5000
LIBRETRANSLATE_API_KEY=
TARGET_LANG=en
TRANSLATION_ALTERNATIVES=2
MAX_TRANSLATIONS_PER_MESSAGE=1
# Usually you want this off for moderation logs: translate the logging bot, not players directly.
TRANSLATE_HUMAN_MESSAGES=false
# Conservative local flagging. Add comma-separated words/phrases your community wants flagged.
ENABLE_RISK_FLAG=true
FLAGGED_TERMS=
# Tune only if needed.
MIN_DETECTION_CONFIDENCE=0.2
TRANSLATION_TIMEOUT_MS=12000
TRANSLATION_DELAY_MS=800
MAX_ORIGINAL_LENGTH=600
MAX_TRANSLATION_LENGTH=600