Fixed sorting on either int or time record.
This commit is contained in:
@@ -15,7 +15,7 @@ class RegisterHighscoreChannel(commands.Cog, name="Score"):
|
||||
self.bot = bot
|
||||
|
||||
@commands.command(name="score")
|
||||
async def score(self, ctx: commands.Context, boss_name: str, category: str, score):
|
||||
async def score(self, ctx: commands.Context, boss_name: str, category: str, score: str):
|
||||
"""A command which calls a function to submit the score to highscores. Gathers required
|
||||
information from command and passes on.
|
||||
Usage:
|
||||
@@ -23,9 +23,7 @@ class RegisterHighscoreChannel(commands.Cog, name="Score"):
|
||||
?score "Boss Name" "Category" "score"
|
||||
```
|
||||
"""
|
||||
await highscore_manage.submit_score_int(
|
||||
self, ctx, boss_name, category, ctx.author.display_name, score
|
||||
)
|
||||
await highscore_manage.submit_score(self, ctx, boss_name, category, score)
|
||||
|
||||
|
||||
# This function will be called when this extension is loaded.
|
||||
|
||||
Reference in New Issue
Block a user