major-domo-v2/utils
Cal Corum 62541ac750 Add injury log posting and fix view interaction permissions
Features:
- Post injury announcements to #sba-network-news when injuries are logged
- Update #injury-log channel with two embeds:
  - All injuries grouped by Major League team with return dates
  - All injuries grouped by return week, sorted ascending
- Auto-purge old messages before posting updated injury log

Bug Fixes:
- Fix BaseView interaction_check logic that incorrectly rejected command users
  - Old: Rejected if (not user_id match) OR (not in responders)
  - New: Allow if (user_id match) OR (in responders)
- Filter None values from responders list (handles missing gmid2)

Changes:
- services/injury_service.py: Add get_all_active_injuries_raw() method
- utils/injury_log.py: New utility for injury channel posting
- views/modals.py: Call injury posting after successful injury logging
- views/base.py: Fix interaction authorization logic
- config.py: Update to Season 13 Players role

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-19 00:08:11 -06:00
..
__init__.py CLAUDE: Initial commit for discord-app-v2 rebuild 2025-08-15 00:04:50 -05:00
autocomplete.py Consolidate season config variables to single source (v2.21.0) 2025-12-02 16:12:16 -06:00
cache.py CLAUDE: Fix type annotations in CacheManager for JSON-serializable types 2025-10-14 00:22:01 -05:00
CLAUDE.md CLAUDE: Refactor dice rolling into reusable utility module and add /d20 command 2025-10-29 01:15:11 -05:00
decorators.py CLAUDE: Add draft period restriction to interactive draft commands 2025-10-25 20:29:16 -05:00
dice_utils.py CLAUDE: Refactor dice rolling into reusable utility module and add /d20 command 2025-10-29 01:15:11 -05:00
discord_helpers.py CLAUDE: Refactor scorebug display and add dynamic channel visibility 2025-10-22 16:58:21 -05:00
draft_helpers.py Fix draft cap validation using max_zeroes logic 2025-12-12 21:42:42 -06:00
helpers.py Fix draft pick API parsing and enhance admin command feedback 2025-12-10 15:33:52 -06:00
injury_log.py Add injury log posting and fix view interaction permissions 2025-12-19 00:08:11 -06:00
listeners.py Refactored listener logic and added SpoilerListener 2025-10-22 14:59:19 -05:00
logging.py CLAUDE: SUCCESSFUL STARTUP - Discord Bot v2.0 fully operational 2025-08-16 07:36:47 -05:00
permissions_examples.py CLAUDE: Add flexible permission system for multi-server support 2025-11-06 11:29:29 -06:00
permissions.py Consolidate season config variables to single source (v2.21.0) 2025-12-02 16:12:16 -06:00
random_gen.py CLAUDE: Major bot enhancements - Admin commands, player stats, standings, schedules 2025-08-28 15:32:38 -05:00
scorebug_helpers.py CLAUDE: Fix scorebug win probability display logic and enhance percentage positioning 2025-10-29 00:39:41 -05:00
team_utils.py Consolidate season config variables to single source (v2.21.0) 2025-12-02 16:12:16 -06:00
text_utils.py CLAUDE: Add smart text splitting for Discord embed fields 2025-10-21 14:46:24 -05:00
transaction_logging.py Fix sWAR display precision and draft team role pings 2025-12-12 18:41:46 -06:00