Skip to content

Allow adding and querying multiple leaderboards #19

@dnaka91

Description

@dnaka91

Currently the bot only supports one single leaderboard.

I thought it would be interesting to allow the owner (user ID should be set through config) to add more leaderboards with a new command like !track 12345 name with the first argument being the ID and the second argument being a name for it (or basically anything that follows after the first argument).
As alternative all leaderboards could just be statically configured through new config fields.

The limitation to only allow an owner to add more leaderboards comes from the limitation that the access to the API is bound by the session cookie, so we can only query leaderboards that are accessible by the configured session cookie.

With multiple leaderboards being there, the current !aoc should be extended with an argument like !aoc name to query a single leaderboard by name. Eventually it makes sense to allow setting a default leaderboard so the argument becomes optional (either through config or a new command like !default name).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions