Fixed some bugs

This commit is contained in:
Choco
2024-02-22 16:18:58 +08:00
parent 58e9caa86f
commit 9069e5fa7e
3 changed files with 3 additions and 3 deletions

View File

@@ -751,7 +751,7 @@ class Basic(commands.Cog):
if len(player.shuffle_votes) >= (required := player.required()):
pass
else:
return await send(ctx, "shuffleVote", ctx.author, len(player.skip_votes), required)
return await send(ctx, "shuffleVote", ctx.author, len(player.shuffle_votes), required)
await player.shuffle("queue", ctx.author)
await send(ctx, "shuffled")

View File

@@ -305,7 +305,7 @@ class Shuffle(ControlButton):
if len(self.player.shuffle_votes) >= (required := self.player.required()):
pass
else:
return await self.send(interaction, 'shuffleVote', interaction.user, len(self.player.skip_votes), required)
return await self.send(interaction, 'shuffleVote', interaction.user, len(self.player.shuffle_votes), required)
await self.player.shuffle("queue", interaction.user)
await self.send(interaction, 'shuffled')

View File

@@ -430,7 +430,7 @@ class Node:
spotify_playlist=spotify_results
)
elif discord_url := DISCORD_MP3_URL_REGEX.match(query):
elif DISCORD_MP3_URL_REGEX.match(query):
async with self._session.get(
url=f"{self._rest_uri}/" + NODE_VERSION + f"/loadtracks?identifier={quote(query)}",
headers={"Authorization": self._password}