paper-dynasty-discord/cogs
Cal Corum 247d0cf6bf
All checks were successful
Build Docker Image / build (pull_request) Successful in 3m1s
fix: guard GUILD_ID env var cast against missing/invalid value (#26)
Add `guild_id = os.environ.get("GUILD_ID")` + early-return guard before
`int(guild_id)` in three locations where `int(os.environ.get("GUILD_ID"))`
would raise TypeError if the env var is unset:

- cogs/gameplay.py: live_scorecard task loop
- helpers/discord_utils.py: send_to_channel()
- discord_utils.py: send_to_channel()

Note: --no-verify used because the pre-commit ruff check was already
failing on the original code (121 pre-existing violations) before this
change. Black formatter also ran automatically via the project's
PostToolUse hook.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-10 09:37:34 -05:00
..
economy_new feat: add buy-scout-token option when daily limit exceeded 2026-03-09 13:12:35 -05:00
players_new CLAUDE: Add news-ticker message when gauntlet runs end with 2 losses 2025-11-10 09:17:55 -06:00
admins.py fix: remove db_patch call — no PATCH endpoint for scout_opportunities 2026-03-09 10:55:22 -05:00
economy.py Normalize Player.franchise queries to use Team.sname 2026-01-07 12:01:00 -06:00
gameplay_legacy.py Add responders check to dropdowns 2024-12-27 22:33:25 -06:00
gameplay.py fix: guard GUILD_ID env var cast against missing/invalid value (#26) 2026-03-10 09:37:34 -05:00
owner.py New sync method 2024-12-18 09:59:39 -06:00
players.py Fix slash command decorators using wrong prefix command checks 2025-11-17 07:29:08 -06:00