Skip to content

Implement a /leaderboard command #35

@jotslo

Description

@jotslo

⚠️ Please familiarise yourself with our organisation information and contribution guidelines before continuing.

Introduction

Our server's Discord bot uses a SQLite3 database to store points and levels for each member. This allows for us to keep track of our members' chat XP for determining appropriate activity-based roles in the server.

All members have access to a /points chat command that is written in the main.py file, and allows for them to see their own points and level count, as well as anyone else's points by mentioning other users as an optional argument.

The task

We would like a /leaderboard command, which is an embed with a similar style to the one used for the /points command.

By default, the leaderboard must respond with the placements, names, tags, levels and points of the members with the top 10 most points in the server.

Additionally, the leaderboard command must take an additional optional argument, which is a number representing which page of the leaderboard to view.

For example, typing /leaderboard 5 should respond with the users from 51-60th place.

Be sure to test the bot for any potential errors and incorrect/malicious information that a user might enter.

How do I help?

If this interests you, feel free to make a comment here before starting, and request to be assigned as a contributor.

Once you have been assigned, you're good to go!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions