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