- log rotation (50m x 3) for all services in both compose files - httpx logger -> WARNING: it logged every Telegram call with the bot token in the URL - LOG_LEVEL env (INFO default); admin_bot no longer forces the level via import-time basicConfig - periodic_check chatter (API dumps, timestamps, waits) moved to DEBUG - error_handler logs the real traceback (exc_info) plus the offending user/update - drop_pending_updates=False so /start during a restart isn't silently lost - TTS announcer behind optional TTS_URL (unreachable from prod, was failing on every event) - reject closed Lichess accounts on /addgamer (API answers 200 with disabled=true) - store Lichess' canonical username spelling; merge case-duplicate gamers at startup, case-insensitive unique index prevents new ones - reply with a hint on text outside the /addgamer flow and on non-text messages; one INFO line per incoming update for funnel visibility - gamer_added counter for successful adds; /setperiod localized (ru hour plurals) - drop hardcoded /home/vrubel path for help images Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
19 lines
810 B
Text
19 lines
810 B
Text
# Docker Compose Project Name
|
|
COMPOSE_PROJECT_NAME=lichess
|
|
|
|
# Telegram Bot Tokens (Test)
|
|
TELEGRAM_BOT_TOKEN=7903295042:AAGBO2k8pfBDy4RoLRFsknwE7z0N-thAPI8
|
|
ADMINPANEL_TELEGRAM_BOT_TOKEN=8588876086:AAHoZncfhTCbul1BblpvnZMzvz7jAYVFmcw
|
|
|
|
# Lichess personal API token used to authenticate outgoing requests to
|
|
# lichess.org (games/user, user/activity). Lichess started rejecting
|
|
# anonymous requests to these endpoints with a 404; any valid token works,
|
|
# it does not need to belong to a tracked player.
|
|
LICHESS_APP_TOKEN=lip_xxxxxxxxxxxxxxxxxxxx
|
|
|
|
# Optional: logging level for the bots (INFO by default).
|
|
#LOG_LEVEL=INFO
|
|
|
|
# Optional: text-to-speech announcer for admin events, reachable only from the
|
|
# home LAN. Leave unset on prod (the bot then skips it instead of timing out).
|
|
#TTS_URL=http://192.168.8.111:7901
|