35 lines
1.1 KiB
Python
35 lines
1.1 KiB
Python
# Players package for Paper Dynasty Discord Bot
|
|
# Refactored from the original monolithic players.py cog
|
|
|
|
from .shared_utils import get_ai_records, get_record_embed, get_record_embed_legacy
|
|
import logging
|
|
from discord.ext import commands
|
|
|
|
__all__ = [
|
|
'get_ai_records',
|
|
'get_record_embed',
|
|
'get_record_embed_legacy'
|
|
]
|
|
|
|
|
|
async def setup(bot):
|
|
"""
|
|
Setup function for the players package.
|
|
Loads all player-related cogs.
|
|
"""
|
|
# Import and setup all player modules
|
|
from .gauntlet import Gauntlet
|
|
from .paperdex import Paperdex
|
|
from .player_lookup import PlayerLookup
|
|
from .standings_records import StandingsRecords
|
|
from .team_management import TeamManagement
|
|
from .utility_commands import UtilityCommands
|
|
|
|
await bot.add_cog(Gauntlet(bot))
|
|
await bot.add_cog(Paperdex(bot))
|
|
await bot.add_cog(PlayerLookup(bot))
|
|
await bot.add_cog(StandingsRecords(bot))
|
|
await bot.add_cog(TeamManagement(bot))
|
|
await bot.add_cog(UtilityCommands(bot))
|
|
|
|
logging.getLogger('discord_app').info('All player cogs loaded successfully') |