paper-dynasty-discord/helpers/__init__.py
Cal Corum 2d5bd86d52 feat: Add Scouting feature (Wonder Pick-style social pack opening)
When a player opens a pack, a scout opportunity is posted to #pack-openings
with face-down card buttons. Other players can blind-pick one card using
daily scout tokens (2/day), receiving a copy. The opener keeps all cards.

New files:
- discord_ui/scout_view.py: ScoutView with dynamic buttons and claim logic
- helpers/scouting.py: create_scout_opportunity() and embed builder
- cogs/economy_new/scouting.py: /scout-tokens command and cleanup task

Modified:
- helpers/main.py: Hook into open_st_pr_packs() after display_cards()
- paperdynasty.py: Register scouting cog

Requires new API endpoints in paper-dynasty-database (scout_opportunities).
Tracks #44.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 13:22:58 +00:00

31 lines
1020 B
Python

"""
Helpers Package
This package contains all helper modules for the Paper Dynasty Discord Bot.
The package is organized into logical modules for better maintainability.
Modules:
- constants: Application constants and configuration
- utils: General utility functions
- random_content: Random content generators
- search_utils: Search and fuzzy matching functionality
- discord_utils: Discord helper functions
- cards: Card display and pagination functions (future)
- packs: Pack opening and management (future)
- sheets: Google Sheets operations (future)
- teams: Team-related utilities (future)
- players: Player-related utilities (future)
"""
# Import all functions from the original helpers.py to maintain backward compatibility
# This allows existing code to continue working during the migration
from helpers.main import *
# Import from migrated modules
from .constants import *
from .utils import *
from .random_content import *
from .search_utils import *
from .discord_utils import *
from .scouting import *