1
Fork 0
mirror of https://github.com/wlinator/luminara.git synced 2024-10-02 20:23:12 +00:00

feat: Update level commands

This commit is contained in:
wlinator 2024-09-01 08:12:32 -04:00
parent 8b09e5c0f4
commit a526183074
2 changed files with 16 additions and 2 deletions

View file

@ -15,9 +15,16 @@ class Leaderboard(commands.Cog):
@commands.hybrid_command(
name="leaderboard",
aliases=["lb"],
usage="leaderboard",
)
async def leaderboard(self, ctx: commands.Context[commands.Bot]) -> None:
"""
Get the leaderboard for the server.
Parameters
----------
ctx : commands.Context[commands.Bot]
The context of the command.
"""
guild: Guild | None = ctx.guild
if not guild:
return

View file

@ -13,9 +13,16 @@ class Level(commands.Cog):
@commands.hybrid_command(
name="level",
aliases=["rank", "lvl", "xp"],
usage="level",
)
async def ping(self, ctx: commands.Context[commands.Bot]) -> None:
"""
Get the level of the user.
Parameters
----------
ctx : commands.Context[commands.Bot]
The context of the command.
"""
if not ctx.guild:
return