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).
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 namewith 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
!aocshould be extended with an argument like!aoc nameto 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).