Major Domo v2 - Discord bot for Strat-o-Matic Baseball Association
Makes all application constants (except baseball positions) configurable via environment variables for greater deployment flexibility. Changes: - config.py: Added 18 new configurable fields to BotConfig * Discord limits (embed/field/description limits) * League settings (weeks, games, modern stats era) * Current season constants (SBA/PD) * API configuration (version, timeout, retries) * Draft settings (pick minutes, rounds) * Special team IDs (free agent team) * Role/channel names (help editor, players, news channel) * Base URLs (SBA website) - constants.py: Refactored to load from config * All constants now read from get_config() * Position sets remain static (PITCHER_POSITIONS, etc.) * Added documentation about configurability - .env.example: Added all new environment variables * Organized into logical sections with headers * Includes default values from config.py * Clear documentation for each setting Benefits: - Environment-specific configuration without code changes - Easy deployment across dev/staging/production - Season rollover requires only env variable updates - Team-specific customization (channels, roles, URLs) - Docker-friendly configuration management Backward Compatible: All defaults match previous hardcoded values 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .vscode | ||
| api | ||
| commands | ||
| models | ||
| services | ||
| tasks | ||
| tests | ||
| utils | ||
| views | ||
| .dockerignore | ||
| .gitignore | ||
| bot.py | ||
| BUILD_AND_PUSH.md | ||
| build-and-push.sh | ||
| COMMAND_LIST.md | ||
| config.py | ||
| constants.py | ||
| docker-compose.dev.yml | ||
| docker-compose.yml | ||
| DOCKER.md | ||
| Dockerfile | ||
| exceptions.py | ||
| PRE_LAUNCH_ROADMAP.md | ||
| pyrightconfig.json | ||
| requirements.txt | ||
| test_real_data.py | ||