Add repeat track in dashboard

This commit is contained in:
Choco
2023-03-22 19:32:42 +08:00
parent 402e7040b8
commit 0f44e6afe9
5 changed files with 36 additions and 10 deletions

View File

@@ -463,8 +463,6 @@ class Basic(commands.Cog):
if not player.is_privileged(ctx.author):
return await ctx.send(player.get_msg('missingPerms_mode'), ephemeral=True)
if mode.lower() not in ['off', 'track', 'queue']:
mode = "off"
await player.set_repeat(mode)
await ctx.send(player.get_msg('repeat').format(mode.capitalize()))