Complete rebuild of the Discord bot with modern architecture including: - Modular API client with proper error handling - Clean separation of models, services, and commands - Comprehensive test coverage with pytest - Structured logging and configuration management - Organized command structure for scalability 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
34 lines
754 B
Python
34 lines
754 B
Python
"""
|
|
Application constants for Discord Bot v2.0
|
|
"""
|
|
|
|
# Discord Limits
|
|
DISCORD_EMBED_LIMIT = 6000
|
|
DISCORD_FIELD_VALUE_LIMIT = 1024
|
|
DISCORD_EMBED_DESCRIPTION_LIMIT = 4096
|
|
|
|
# League Constants
|
|
WEEKS_PER_SEASON = 18
|
|
GAMES_PER_WEEK = 4
|
|
MODERN_STATS_START_SEASON = 8
|
|
|
|
# Current Season Constants
|
|
SBA_CURRENT_SEASON = 12
|
|
PD_CURRENT_SEASON = 9
|
|
|
|
# API Constants
|
|
API_VERSION = "v3"
|
|
DEFAULT_TIMEOUT = 10
|
|
MAX_RETRIES = 3
|
|
|
|
# Baseball Positions
|
|
PITCHER_POSITIONS = {"SP", "RP", "P"}
|
|
POSITION_FIELDERS = {"C", "1B", "2B", "3B", "SS", "LF", "CF", "RF", "OF", "DH"}
|
|
ALL_POSITIONS = PITCHER_POSITIONS | POSITION_FIELDERS
|
|
|
|
# Draft Constants
|
|
DEFAULT_PICK_MINUTES = 10
|
|
DRAFT_ROUNDS = 25
|
|
|
|
# Special Team IDs
|
|
FREE_AGENT_TEAM_ID = 31 # Generic free agent team ID (same per season) |