✅ **MAJOR MILESTONE**: Bot successfully starts and loads all commands 🔧 **Key Fixes Applied**: - Fixed Pydantic configuration (SettingsConfigDict vs ConfigDict) - Resolved duplicate logging with hybrid propagation approach - Enhanced console logging with detailed format (function:line) - Eliminated redundant .log file handler (kept console + JSON) - Fixed Pylance type errors across views and modals - Added newline termination to JSON logs for better tool compatibility - Enabled league commands package in bot.py - Enhanced command tree hashing for proper type support 📦 **New Components Added**: - Complete views package (base.py, common.py, embeds.py, modals.py) - League service and commands integration - Comprehensive test coverage improvements - Enhanced decorator functionality with proper signature preservation 🎯 **Architecture Improvements**: - Hybrid logging: detailed console for dev + structured JSON for monitoring - Type-safe command tree handling for future extensibility - Proper optional parameter handling in Pydantic models - Eliminated duplicate log messages while preserving third-party library logs 🚀 **Ready for Production**: Bot loads all command packages successfully with no errors 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
18 lines
505 B
Python
18 lines
505 B
Python
"""
|
|
Business logic services for Discord Bot v2.0
|
|
|
|
Service layer providing clean interfaces to data operations.
|
|
"""
|
|
|
|
from .team_service import TeamService, team_service
|
|
from .player_service import PlayerService, player_service
|
|
from .league_service import LeagueService, league_service
|
|
|
|
# Wire services together for dependency injection
|
|
player_service._team_service = team_service
|
|
|
|
__all__ = [
|
|
'TeamService', 'team_service',
|
|
'PlayerService', 'player_service',
|
|
'LeagueService', 'league_service'
|
|
] |