Compare commits
No commits in common. "8ee7693b9157ca34729c5b869915535695eca6dc" and "ea09f291e521b9740e0b4c64c528920274e4c362" have entirely different histories.
8ee7693b91
...
ea09f291e5
@ -44,7 +44,7 @@ class YTDLSource(PCMVolumeTransformer):
|
||||
|
||||
if "entries" in data:
|
||||
if not data["entries"]:
|
||||
raise Exception("no results found!")
|
||||
raise Exception("no entries provided by yt-dlp!")
|
||||
data = data["entries"][0]
|
||||
|
||||
return cls(
|
||||
|
@ -1,3 +1,5 @@
|
||||
import disnake
|
||||
|
||||
import utils
|
||||
|
||||
from .utils import command_allowed
|
||||
@ -8,6 +10,8 @@ async def join(message):
|
||||
return await message.guild.voice_client.move_to(message.channel)
|
||||
elif message.author.voice:
|
||||
await message.author.voice.channel.connect()
|
||||
elif isinstance(message.channel, disnake.VoiceChannel):
|
||||
await message.channel.connect()
|
||||
else:
|
||||
await utils.reply(message, "you are not connected to a voice channel!")
|
||||
return
|
||||
|
@ -159,7 +159,7 @@ async def queue_or_play(message, edited=False):
|
||||
)
|
||||
player.volume = float(args.volume) / 100.0
|
||||
except Exception as e:
|
||||
await utils.reply(message, f"failed to queue: `{e}`")
|
||||
await utils.reply(message, f"**failed to queue:** `{e}`")
|
||||
return
|
||||
|
||||
queued = audio.queue.Song(player, message)
|
||||
|
Loading…
x
Reference in New Issue
Block a user