paper-dynasty-discord/cogs
Cal Corum 0b8beda8b5
All checks were successful
Ruff Lint / lint (pull_request) Successful in 13s
feat(compare): add /compare slash command for side-by-side card comparison
Implements Roadmap 2.5b: new /compare command lets players compare two
cards of the same type (batter vs batter or pitcher vs pitcher) in a
side-by-side embed with directional delta arrows (▲▼═).

- cogs/compare.py: new CompareCog with /compare slash command and
  player_autocomplete on both params; fetches battingcard/pitchingcard
  data from API; validates type compatibility; sends public embed
- tests/test_compare_command.py: 30 unit tests covering _delta_arrow,
  _is_pitcher, batter/pitcher embed builders, type mismatch error, and
  edge cases (None stats, tied values)
- paperdynasty.py: registers cogs.compare in COGS list

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-10 10:35:17 -05:00
..
economy_new Merge branch 'main' into hotfix/open-packs-checkin 2026-03-26 13:50:01 +00:00
players_new fix: log and handle ZeroDivisionError in gauntlet draft (#31) 2026-03-10 10:04:14 -05:00
admins.py fix: remove db_patch call — no PATCH endpoint for scout_opportunities 2026-03-09 10:55:22 -05:00
compare.py feat(compare): add /compare slash command for side-by-side card comparison 2026-04-10 10:35:17 -05:00
dev_tools.py fix: remove dead parameters from PR review feedback 2026-04-09 08:34:02 -05:00
economy.py fix: apply open-packs hotfix to cogs/economy.py 2026-03-26 13:04:19 -05: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 refactor: extract TIER_NAMES/TIER_COLORS to shared constants module (#146) 2026-04-08 00:03:46 -05:00
refractor.py refactor: extract TIER_NAMES/TIER_COLORS to shared constants module (#146) 2026-04-08 00:03:46 -05:00