Commit graph

8 commits

Author SHA1 Message Date
vrubelroman
6355cd917d fix log bloat, token leak, silent onboarding gaps, closed-account adds, case-duplicate gamers
- 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>
2026-10-20 21:21:19 +00:00
vrubelroman
f58bf8b6a7 add /sendusers0 2025-11-28 18:28:51 +03:00
vrubelroman
faf6ec0c35 count users without gamers 2025-11-20 02:22:44 +03:00
vrubelroman
1f384c12ab add audio notifications 2025-11-18 19:39:52 +03:00
vrubelroman
8a813be5cc new users and gamers today 2025-11-18 14:30:55 +03:00
vrubelroman
e645e57f74 add system messages 2025-11-13 15:07:53 +03:00
vrubelroman
ceb62b408a add statistics 2025-11-13 13:32:46 +03:00
vrubelroman
23de80f94d admin panel 2025-11-13 01:00:48 +03:00