Knuth-Programming-Hub / Knuth-Programming-Hub/KLE-bot
Ranklist display
- Dominant language
- JavaScript
- Stars
- 4
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
**The problem**
The _!ranklist_ command simply displays the list of members who have verified their CF handles. The problem is that the list doesn't have a limit on the no. of members (i.e. the output depends on the [Discord embed limits](https://discordjs.guide/popular-topics/embeds.html#embed-limits)).
**Solution I'd like**
- A simple solution would be to limit the no. of users. We can only display the top 10 members or something like that.
- But here I am asking for a better solution. One of them is to "paginate" the list (something which [TLE](https://github.com/cheran-senthil/TLE) does). We can have multiple embeds with each embed having let's say 10 members. We can then turn the pages using reactions (eg: ◀️, ▶️) .
**Additional context**
We can remove reactions from the embeds after some time.
Contributor guide
Research direction
Start by locating the !ranklist command and reading how verified members are assembled into Discord embeds. Review the Discord embed limits and existing reaction handling before choosing a pagination design. Done means the full member list can be navigated across embeds and temporary reactions are removed as described.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100