diff --git a/commands/top.py b/commands/top.py index c36fa0b..fd21d0c 100644 --- a/commands/top.py +++ b/commands/top.py @@ -102,3 +102,14 @@ def setup(bot: bot.Bot): username = username, countstr = countstr ) + + @bot.command(name="toptracks", aliases=["tt","toptrack"]) + @bot.slash_command(name="toptracks", description="Generate a list of your most played songs.") + async def toptracks(ctx: nerimity.Context, timeframe: str = "7day", username: str = None, countstr: str = "10"): + await send_top( + ctx = ctx, + entity = "track", + timeframe = timeframe, + username = username, + countstr = countstr + )