From 7b214d87c9159d9c46604500c51e91ba2c146731 Mon Sep 17 00:00:00 2001 From: yuki Date: Thu, 9 Oct 2025 04:01:27 -0300 Subject: [PATCH] add top songs command --- commands/top.py | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 + )