#15 · Show bot's own scoreboard rank in `!score` output
Last checked with GitLab: . Status comes from GitLab using a 2-minute cache. Merge events clear affected cached statuses. An already-open page does not update itself. Refresh page.
An MR completes this bounty when it is merged into main with Closes #15 and GitLab closes the issue. A mention or an updated timestamp is not completion. Awarded points appear in Activity.
cp .dev.vars.example .dev.vars && pnpm dev, after rebasing on main) and fully test your change before opening the MR.
Description
Context
!score already returns a member's points. Add a one-liner showing the bot's leaderboard rank within the community to drive engagement ("You're #14 of 312, 280 points behind #13").
Acceptance criteria
- [ ]
!scoreadds a line:Rank: #N of M (X pts behind next, Y pts ahead of previous) - [ ] Edge cases handled: rank 1 (no "behind"), rank last (no "ahead")
- [ ] Member opted out of leaderboard (
leaderboard_visible=0): show only own score, no rank
Technical hints
- scoreboard exposes
/api/leaderboard(already exists) — extend the response or add?around_user=<id>if needed - Modify
handleScoreinselfhost/messaging-apps/signal-messenger/src/src/bot/command-handler.ts(the switch dispatches!score/!leaderboardthere)
--- *Submit a merge request that says Closes #<this issue iid> in the description. On merge to main, the GitLab webhook will auto-award your bounty + the standard merge_pr (40 pts) to your scoreboard account. Email on commit must match your Authentik email.*
Relevant files
No relevant files linked yet.
Hints
No hints yet.
Activity
No points have been awarded for this bounty yet.
Comments
Sign in to join the discussion.
No comments yet. Be the first to weigh in.