major-domo-v2/services
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 Add Google Sheets integration for draft pick tracking 2025-12-11 11:18:27 -06:00
base_service.py CLAUDE: Fix /set-image command to use query parameters for API updates 2025-10-13 17:52:14 -05:00
chart_service.py CLAUDE: Add multi-image support for charts 2025-10-20 22:00:19 -05:00
CLAUDE.md Add Google Sheets integration for draft pick tracking 2025-12-11 11:18:27 -06:00
custom_commands_service.py Fix /cc-create endpoint path mismatch (v2.19.2) 2025-11-24 21:20:28 -06:00
decision_service.py CLAUDE: Add comprehensive scorecard submission system 2025-10-16 00:21:32 -05:00
draft_list_service.py Add comprehensive draft services test suite and API fixes (v2.23.0) 2025-12-09 15:11:51 -06:00
draft_pick_service.py Fix off-by-one error in draft recent picks display 2025-12-12 19:14:53 -06:00
draft_service.py Add draft pause/resume functionality 2025-12-11 19:58:37 -06:00
draft_sheet_service.py Optimize draft sheet batch writes to single API call 2025-12-12 15:01:48 -06:00
game_service.py CLAUDE: Add comprehensive scorecard submission system 2025-10-16 00:21:32 -05:00
giphy_service.py CLAUDE: Fix GroupCog interaction bug and GIF display issues 2025-10-16 22:15:42 -05:00
help_commands_service.py CLAUDE: Implement custom help commands system 2025-10-10 13:14:13 -05:00
injury_service.py Add injury log posting and fix view interaction permissions 2025-12-19 00:08:11 -06:00
league_service.py Consolidate season config variables to single source (v2.21.0) 2025-12-02 16:12:16 -06:00
play_service.py CLAUDE: Add comprehensive scorecard submission system 2025-10-16 00:21:32 -05:00
player_service.py Add draft monitor auto-start and on-clock announcement embed 2025-12-10 23:04:39 -06:00
roster_service.py Fix sWAR display precision and draft team role pings 2025-12-12 18:41:46 -06:00
schedule_service.py CLAUDE: Major bot enhancements - Admin commands, player stats, standings, schedules 2025-08-28 15:32:38 -05:00
scorebug_service.py CLAUDE: Refactor scorebug display and add dynamic channel visibility 2025-10-22 16:58:21 -05:00
sheets_service.py CLAUDE: Add comprehensive scorecard submission system 2025-10-16 00:21:32 -05:00
standings_service.py CLAUDE: Add comprehensive scorecard submission system 2025-10-16 00:21:32 -05:00
stats_service.py CLAUDE: Major bot enhancements - Admin commands, player stats, standings, schedules 2025-08-28 15:32:38 -05:00
team_service.py Consolidate season config variables to single source (v2.21.0) 2025-12-02 16:12:16 -06:00
trade_builder.py Add trade acceptance workflow with transaction logging (v2.22.0) 2025-12-04 13:46:10 -06:00
transaction_builder.py Add configurable roster limits with offseason support 2025-12-04 11:06:36 -06:00
transaction_service.py CLAUDE: Add /ilmove command for real-time roster moves with organizational affiliate support 2025-10-20 20:15:12 -05:00