Skip to content

Comments

Add Discord ranking notification worker#165

Merged
msaroufim merged 1 commit intomainfrom
ranking-notifications
Feb 10, 2026
Merged

Add Discord ranking notification worker#165
msaroufim merged 1 commit intomainfrom
ranking-notifications

Conversation

@msaroufim
Copy link
Member

Polls the database every 5 minutes and sends Discord webhook messages to #submissions when the top 3 positions change on any active leaderboard. Congratulates users who move up and trash-talks users who get bumped out.

  • Standalone script (no Flask dependency), runs as a Heroku worker dyno
  • New DB table leaderboard.ranking_snapshot (auto-created on startup)
  • Supports --dry-run and --test flags for safe testing
  • Requires DISCORD_RANKING_WEBHOOK_URL env var

Polls the database every 5 minutes and sends Discord webhook messages
to #submissions when the top 3 positions change on any active
leaderboard. Congratulates users who move up and trash-talks users
who get bumped out.

- Standalone script (no Flask dependency), runs as a Heroku worker dyno
- New DB table leaderboard.ranking_snapshot (auto-created on startup)
- Supports --dry-run and --test flags for safe testing
- Requires DISCORD_RANKING_WEBHOOK_URL env var
@msaroufim msaroufim temporarily deployed to kernelboard-ranking-not-oa501l February 10, 2026 20:00 Inactive
@msaroufim msaroufim merged commit ba9909e into main Feb 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant