Paper Dynasty Discord - Discord bot for card game
Users reported that end-of-run messages to #pd-news-ticker were no longer appearing when gauntlet teams lost their second game. The news-ticker announcement was only happening for 10-win completions, not 2-loss endings. Changes: - Updated end_run() to accept bot and main_team parameters - Added send_to_channel() call when losses == 2 (natural run end) - Skips news-ticker for manual resets (force_end=True) - Updated post_result() to pass bot and main_team to end_run() - Updated manual reset calls to explicitly pass force_end=True Now when a gauntlet team loses their second game, #pd-news-ticker will show: "The **[Team]** have completed their **[Event]** Gauntlet run with a final record of [wins]-[losses]." The draft completion message to news-ticker was already working correctly at cogs/players_new/gauntlet.py:178-183. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .plans | ||
| .vscode | ||
| cogs | ||
| command_logic | ||
| discord_ui | ||
| helpers | ||
| in_game | ||
| migrations | ||
| tests | ||
| utilities | ||
| .dockerignore | ||
| .gitignore | ||
| alembic.ini | ||
| api_calls.py | ||
| constants.py | ||
| db_calls_gameplay.py | ||
| dice.py | ||
| discord_utils.py | ||
| Dockerfile | ||
| exceptions.py | ||
| gauntlets.py | ||
| help_text.py | ||
| helpers.py | ||
| LICENSE | ||
| manual_pack_distribution.py | ||
| paperdynasty.py | ||
| pytest.ini | ||
| random_content.py | ||
| requirements.txt | ||
| search_utils.py | ||
| utils.py | ||