Apply to new queue repeat method

This commit is contained in:
Choco
2023-02-20 11:18:46 +08:00
parent 1df4b65427
commit 7621ce44ba
2 changed files with 8 additions and 8 deletions

View File

@@ -319,8 +319,8 @@ class Basic(commands.Cog):
await ctx.send(player.get_msg('skipped').format(ctx.author))
if player.queue.repeat == "Track":
player.queue.set_repeat("Off")
if player.queue._repeat == 1:
player.queue.set_repeat("off")
await player.stop()
@commands.hybrid_command(name="back", aliases=get_aliases("back"))
@@ -358,8 +358,8 @@ class Basic(commands.Cog):
await ctx.send(player.get_msg('backed').format(ctx.author))
if player.queue.repeat == "Track":
player.queue.set_repeat("Off")
if player.queue._repeat == 1:
player.queue.set_repeat("off")
@commands.hybrid_command(name="seek", aliases=get_aliases("seek"))
@app_commands.describe(position="Input position. Exmaple: 1:20.")

View File

@@ -63,8 +63,8 @@ class previous_command(discord.ui.Button):
await interaction.response.send_message(self.player.get_msg("backed").format(interaction.user))
if self.player.queue.repeat == "Track":
self.player.queue.set_repeat("Off")
if self.player.queue._repeat == 1:
self.player.queue.set_repeat("off")
class resume_command(discord.ui.Button):
def __init__(self, player):
@@ -130,8 +130,8 @@ class skip_command(discord.ui.Button):
await interaction.response.send_message(self.player.get_msg("skipped").format(interaction.user))
if self.player.queue.repeat == "Track":
self.player.queue.set_repeat("Off")
if self.player.queue._repeat == 1:
self.player.queue.set_repeat("off")
await self.player.stop()
class stop_command(discord.ui.Button):