add top albums command

This commit is contained in:
yuki 2025-10-09 04:01:18 -03:00
parent f45d91d0c0
commit 1aa5a9b36c

View file

@ -82,7 +82,7 @@ def setup(bot: bot.Bot):
return
@bot.command(name="topartists", aliases=["ta","topartist"])
@bot.slash_command(name="topartists", description="Generate a list of your top artists.")
@bot.slash_command(name="topartists", description="Generate a list of your most played artists.")
async def topartists(ctx: nerimity.Context, timeframe: str = "7day", username: str = None, countstr: str = "10"):
await send_top(
ctx = ctx,
@ -91,3 +91,14 @@ def setup(bot: bot.Bot):
username = username,
countstr = countstr
)
@bot.command(name="topalbums", aliases=["t","top","topalbum"])
@bot.slash_command(name="topalbums", description="Generate a list of your most played albums.")
async def topalbums(ctx: nerimity.Context, timeframe: str = "7day", username: str = None, countstr: str = "10"):
await send_top(
ctx = ctx,
entity = "album",
timeframe = timeframe,
username = username,
countstr = countstr
)