add top songs command
This commit is contained in:
parent
1aa5a9b36c
commit
7b214d87c9
1 changed files with 11 additions and 0 deletions
|
|
@ -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
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue