GrafeasGroup / blossom

The website. The app. The everything.
6 stars 3 forks source link

Add `volunteer/leaderboard` endpoint #175

Closed TimJentzsch closed 2 years ago

TimJentzsch commented 3 years ago

Add a volunteer/leaderboard endpoint to get the data necessary for the /leaderboard command (GrafeasGroup/buttercup#18).

For reference, the bot output will look something like this: Response of the old bot to the `!leaderboard` command

The endpoint could have a format like this:

{
  "top": [ ... ],
  "above": [ ... ],
  "user": { ... },
  "below": [ ... ]
}

Each user entry should have a form similar to this:

{
  "id": 4034,
  "username": "Tim3303",
  "rank": 16,
  "gamma": 1248
}