paper-dynasty-discord/cogs/economy_new
Cal Corum 01f6fb50d5
All checks were successful
Build Docker Image / build (pull_request) Successful in 3m17s
fix: prevent crash when Check-In Player packs appear in open-packs menu
Check-In Player packs (auto-opened by daily check-in) could end up orphaned
in inventory if roll_for_cards failed. The open-packs command crashed because:
1. The hyphenated pack type name bypassed the pretty_name logic, producing an
   empty select menu that Discord rejected (400 Bad Request)
2. Even if displayed, selecting it would raise KeyError in the callback since
   "Check-In Player".split("-") doesn't match any known pack type token

Fixes:
- Filter auto-open pack types out of the manual open-packs menu
- Add fallback for hyphenated pack type names in pretty_name logic
- Replace KeyError with graceful user-facing message for unknown pack types
- Change "contact an admin" to "contact Cal" in all user-facing messages

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 08:45:51 -05:00
..
__init__.py Added search functionality to /player command 2025-10-08 14:45:41 -05:00
admin_tools.py Added search functionality to /player command 2025-10-08 14:45:41 -05:00
help_system.py S10 Updates + PR Bugfix 2025-11-09 06:12:46 -06:00
marketplace.py Added search functionality to /player command 2025-10-08 14:45:41 -05:00
notifications.py Added search functionality to /player command 2025-10-08 14:45:41 -05:00
packs.py fix: prevent crash when Check-In Player packs appear in open-packs menu 2026-03-26 08:45:51 -05:00
scouting.py feat: add buy-scout-token option when daily limit exceeded 2026-03-09 13:12:35 -05:00
team_setup.py CLAUDE: Add get_context_user() helper for hybrid command compatibility 2025-11-10 09:07:09 -06:00