Major Domo v2 - Discord bot for Strat-o-Matic Baseball Association
This commit implements significant improvements to the transaction management system: **Major Changes:** 1. Enhanced /dropadd command workflow: - All responses are now ephemeral for better user privacy - Every call now shows the transaction builder (not just first move) - Improved autocomplete with team context prioritization (user's players first) 2. Added team ownership validation: - Prevents adding players from other teams (except Free Agents with abbrev='FA') - Enhanced error messages with specific team information - Changed _add_quick_move return type to tuple[bool, str] for better error handling 3. Removed redundant /transactionstatus command: - Command functionality fully replaced by /dropadd without parameters - Simplified workflow reduces user confusion - All related tests updated accordingly **Technical Improvements:** - Enhanced player autocomplete with team prioritization and better formatting - Improved roster detection logic checking actual roster data vs team_id - Better error handling with specific, actionable error messages - Updated all test cases to handle new tuple return types - Added comprehensive test coverage for team ownership validation **Test Coverage:** - All 30 tests passing (17 dropadd + 13 transaction embed tests) - New tests for team ownership validation scenarios - Updated existing tests for new return type patterns The /dropadd command now serves as the single point of entry for all transaction operations while providing a cleaner, more intuitive user experience. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| api | ||
| commands | ||
| models | ||
| services | ||
| tasks | ||
| tests | ||
| utils | ||
| views | ||
| .gitignore | ||
| bot.py | ||
| config.py | ||
| constants.py | ||
| exceptions.py | ||
| requirements.txt | ||
| test_real_data.py | ||