715d778080
Clean up issue comments, remove dead code, fix audit logger bugs
...
- Remove all 15 "Issue #XX" reference comments from production code
- Remove dead code: CooldownManager class (unused, using discord.py cooldown),
is_owner() function (unreferenced), unused imports (datetime_time, get)
- Remove unused env vars: ANNOUNCEMENT_CHANNEL_ID, PELICAN_URL, HYTALE_SERVER_UUID
- Fix AuditLogger.flush() dropping items when queue > 10 (now processes in batches)
- Fix AuditLogger.log() using .seconds instead of .total_seconds() (broke after 1+ days)
- Use unicode escapes for emoji in poll reactions for consistency
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-10 20:49:55 -05:00
ea91a40053
Fix trivia, update agents/champions, rename /status, fix OLLAMA env var
...
- Fix trivia: 25 questions with 4 answer buttons (A/B/C/D), 30s timeout,
per-user answer tracking, gaming + internet culture categories
- Update Valorant agents: add Clove, Tejo, Waylay, Vyse, Veto (28 total)
- Update LoL champions: expand from ~70 to ~166 champions across all lanes
- Rename /status to /health to avoid Wordle conflict
- Fix OLLAMA_HOST env var mismatch (code read OLLAMA_URL, .env has OLLAMA_HOST)
- Add /trivia to help command
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-10 20:41:16 -05:00
838198648e
Refactor bot with 17 issue fixes: logging, caching, error handling, security
...
- Add RotatingFileHandler for log rotation (fixes #21 )
- Add MetricsCollector for command/error tracking (fixes #20 )
- Add discord.py cooldown decorator on /ask (fixes #19 )
- Add ConfigValidator for startup config checks (fixes #17 )
- Add /status health check command for admins (fixes #16 )
- Add autocomplete for /minecraft usernames (fixes #15 )
- Add AuditLogger with batched queue + periodic flush (fixes #14 )
- Add MediaManager with lazy-load cache (fixes #13 )
- Add UsernameCache with TTL for Mojang API (fixes #12 )
- Extract magic numbers to named constants (fixes #11 )
- DRY kill/punch/hug/revive into send_interaction_media (fixes #10 )
- Add handle_command_errors decorator for consistent error handling (fixes #9 )
- Add sanitize_input() for /ask question input (fixes #8 )
- Move Ollama URL to OLLAMA_URL env var (fixes #7 )
- Only log commands, not all message content (fixes #6 )
- Wrap RCON in async executor with timeout (fixes #5 )
- Reuse shared aiohttp.ClientSession on CustomBot (fixes #4 )
- Validate RCON/Pelican/Ollama config on startup (fixes #3 )
- Replace ask_cooldowns dict with CooldownManager + auto-cleanup (fixes #2 )
Note: #18 (MariaDB) deferred - requires database infrastructure setup.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-10 20:22:28 -05:00
39cf654603
Updated the bot so wynter stops spamming when starting messages with a period.
2026-02-01 11:50:34 -05:00
057d21e531
Add HYTALE_ROLE_ID and use it for /hytale command
2026-01-13 16:44:20 -05:00
a821b914c9
Remove daily adjectives feature
2026-01-13 16:41:36 -05:00
be50c2e203
Fix: Remove duplicate hytale command
2026-01-13 16:34:11 -05:00
f6cf24f338
Add /hytale command for whitelist requests and improve bot configuration
2026-01-13 16:30:09 -05:00
f0339058fc
Initial commit - refactored Discord bot with security fixes
2026-01-13 16:03:54 -05:00