Major Domo v2 - Discord bot for Strat-o-Matic Baseball Association
Implemented automatic posting of transaction notifications to #transaction-log channel when transactions are submitted via /dropadd or /ilmove commands. **New Utility:** - `utils/transaction_logging.py` - Centralized transaction logging function - `post_transaction_to_log()` - Posts transaction embed to #transaction-log - Uses team's ML affiliate for consistent branding - Displays team thumbnail, colors, and player moves - Shows season from transaction data (not hardcoded) - Format matches legacy transaction log embeds **Integration Points:** - `/dropadd` (scheduled transactions) - Posts when submitted - `/ilmove` (immediate transactions) - Posts when executed - Both use shared `post_transaction_to_log()` function **Embed Format:** ``` Week 18 Transaction [Team Name] Player Moves: - **PlayerName** (sWAR) from OLDTEAM to NEWTEAM - **PlayerName** (sWAR) from OLDTEAM to NEWTEAM [Team Thumbnail] Footer: "SBa Season 12" with SBA logo ``` **Features:** - Automatic ML affiliate lookup for consistent team display - Team colors and thumbnails in embeds - Season number from transaction data - Graceful error handling (logs warnings, doesn't block submission) - Matches legacy embed format exactly **Files Changed:** - NEW: `utils/transaction_logging.py` - Transaction logging utility - MODIFIED: `views/transaction_embed.py` - Added logging calls on submission **Testing:** - Transaction builder tests pass (31/31) - No new test failures introduced - Logging is non-blocking (submission succeeds even if logging fails) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .gitlab | ||
| .vscode | ||
| api | ||
| commands | ||
| models | ||
| services | ||
| tasks | ||
| tests | ||
| utils | ||
| views | ||
| .dockerignore | ||
| .gitignore | ||
| .gitlab-ci.yml | ||
| .mcp.json | ||
| bot.py | ||
| BUILD_AND_PUSH.md | ||
| build-and-push.sh | ||
| CLAUDE.md | ||
| COMMAND_LIST.md | ||
| config.py | ||
| docker-compose.dev.yml | ||
| docker-compose.yml | ||
| DOCKER.md | ||
| Dockerfile | ||
| Dockerfile.versioned | ||
| exceptions.py | ||
| PRE_LAUNCH_ROADMAP.md | ||
| pyrightconfig.json | ||
| requirements.txt | ||
| test_real_data.py | ||