paper-dynasty-discord/helpers
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
..
__init__.py feat: Add Scouting feature (Wonder Pick-style social pack opening) 2026-03-09 13:22:58 +00:00
constants.py Normalize Player.franchise queries to use Team.sname 2026-01-07 12:01:00 -06:00
discord_utils.py fix: guard GUILD_ID env var cast against missing/invalid value (#26) 2026-03-10 09:37:34 -05:00
main.py feat: limit scouting to Standard/Premium packs, simplify scout view 2026-03-09 13:22:58 +00:00
random_content.py Cogs to Packages Groundwork 2025-08-17 08:46:55 -05:00
scouting.py feat: add buy-scout-token option when daily limit exceeded 2026-03-09 13:12:35 -05:00
search_utils.py Cogs to Packages Groundwork 2025-08-17 08:46:55 -05:00
utils.py fix: update owner_only to use Cal's correct Discord ID 2026-03-09 13:22:58 +00:00