Fixed sorting on either int or time record.

This commit is contained in:
alwayscompiling
2022-07-03 09:54:14 -04:00
parent c45606a7a4
commit 9e19e10b88
4 changed files with 33 additions and 39 deletions
+2 -4
View File
@@ -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.