add top songs command

This commit is contained in:
yuki 2025-10-09 04:01:27 -03:00
parent 1aa5a9b36c
commit 7b214d87c9

View file

@ -102,3 +102,14 @@ def setup(bot: bot.Bot):
username = username, username = username,
countstr = countstr 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
)