All checks were successful
Build Docker Image / build (pull_request) Successful in 1m23s
Add /evo status command showing paginated evolution progress: - Progress bar with formula value vs next threshold - Tier display names (Unranked/Initiate/Rising/Ascendant/Evolved) - Formula shorthands (PA+TB×2, IP+K) - Filters: card_type, tier, progress="close" (within 80%) - Pagination at 10 per page - Evolution cog registered in players_new/__init__.py - 15 unit tests for pure helper functions Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
34 lines
1.1 KiB
Python
34 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
|
|
from .evolution import Evolution
|
|
|
|
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))
|
|
await bot.add_cog(Evolution(bot))
|
|
|
|
logging.getLogger("discord_app").info("All player cogs loaded successfully")
|