Major Domo v2 - Discord bot for Strat-o-Matic Baseball Association
Replace all hard-coded values with centralized config constants for better maintainability and flexibility: Added config constants: - draft_team_count (16) - draft_linear_rounds (10) - swar_cap_limit (32.00) - cap_player_count (26) - draft_total_picks property (derived: rounds × teams) Critical fixes: - FA team ID (498) now uses config.free_agent_team_id in: * tasks/draft_monitor.py - Auto-draft validation * commands/draft/picks.py - Pick validation and autocomplete - sWAR cap limit display now uses config.swar_cap_limit Refactored modules: - utils/draft_helpers.py - All calculation functions - services/draft_service.py - Pick advancement logic - views/draft_views.py - Display formatting Benefits: - Eliminates risk of silent failures from hard-coded IDs - Centralizes all draft constants in one location - Enables easy draft format changes via config - Improves testability with mockable config - Zero breaking changes - fully backwards compatible 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .gitlab | ||
| .vscode | ||
| api | ||
| commands | ||
| models | ||
| services | ||
| tasks | ||
| tests | ||
| utils | ||
| views | ||
| .dockerignore | ||
| .gitignore | ||
| .gitlab-ci.yml | ||
| .mcp.json | ||
| bot.py | ||
| BUILD_AND_PUSH.md | ||
| build-and-push.sh | ||
| CLAUDE.md | ||
| COMMAND_LIST.md | ||
| config.py | ||
| docker-compose.dev.yml | ||
| docker-compose.yml | ||
| DOCKER.md | ||
| Dockerfile | ||
| Dockerfile.versioned | ||
| exceptions.py | ||
| PRE_LAUNCH_ROADMAP.md | ||
| pyrightconfig.json | ||
| requirements.txt | ||
| test_real_data.py | ||