• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Geoffery10 / Discord-Role-Manager / 44604264219
88%
main: 88%

Build:
Build:
LAST BUILD BRANCH: feat/birthday-image-card
DEFAULT BRANCH: main
Ran 19 Nov 2026 08:02PM UTC
Jobs 1
Files 30
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

19 Nov 2026 08:00PM UTC coverage: 88.287% (-2.8%) from 91.051%
44604264219

Pull #7

github

Geoffery10
Add birthday image cards to birthday posts

Every birthday post now carries a generated card: the member's PFP with a
cupcake, and "Happy Birthday <name>" arced across the top in a shimmering
bubbly font.

Design rules:
- The card uses the PFP the member shows *in the guild the post goes to*
  (member.display_avatar: server avatar, else account avatar, else default).
  Guild-avatar URLs carry the guild id, and renders are cached on the resolved
  URL, so a server-specific PFP can never appear on another server while a
  member with the same PFP everywhere is rendered once and reused.
- Cards are built in memory and attached to the post. Nothing is written to
  disk and the cache is dropped at the start of each daily run, so every day's
  images are generated fresh.
- If the card cannot be built the message is still posted: a missing picture
  must never swallow a birthday.

Rendering notes:
- Animated PFPs stay animated. Variable frame timings (frame holds) are
  resampled onto a uniform tick grid so the title shimmer advances evenly
  instead of stalling, with total duration preserved exactly.
- A minimum text frame rate subdivides slow GIFs, so a 3-frame/200ms PFP does
  not jerk the colour 120 degrees a step.
- Output is WebP: true colour (no GIF palette quantisation) and roughly an
  order of magnitude smaller.
- Long usernames wrap to a second arc instead of shrinking to illegibility;
  the second line is placed from measured per-column ink so it neither
  collides with nor floats away from the first.

Also adds preview_birthday_cards.py, which renders every user with a birthday
into a local (gitignored) folder for review without touching the DB or Discord,
and removes the unused BalloonPTx demo fonts.
Pull Request #7: Add birthday image cards to birthday posts

985 of 1220 new or added lines in 6 files covered. (80.74%)

4025 of 4559 relevant lines covered (88.29%)

0.88 hits per line

Uncovered Changes

Lines Coverage ∆ File
169
0.0
preview_birthday_cards.py
58
88.56
birthday_card.py
6
98.4
tests/test_birthday_card.py
2
98.06
-1.06% birthday.py
Jobs
ID Job ID Ran Files Coverage
1 44604264219.1 19 Nov 2026 08:02PM UTC 30
88.29
GitHub Action Run
Source Files on build 44604264219
  • Tree
  • List 30
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #44604264219
  • Pull Request #7
  • PR Base - main (#44581145183)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc