mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 19:58:54 -05:00
Added youtu.be format, fixed raise outdated discord.py
This commit is contained in:
parent
371f8d0f61
commit
49fcb13051
@ -560,6 +560,10 @@ class Audio:
|
|||||||
r'^(https?\:\/\/)?(www\.|m\.)?(youtube\.com|youtu\.?be)\/.+$')
|
r'^(https?\:\/\/)?(www\.|m\.)?(youtube\.com|youtu\.?be)\/.+$')
|
||||||
if yt_link.match(url):
|
if yt_link.match(url):
|
||||||
return True
|
return True
|
||||||
|
yt_link = re.compile(
|
||||||
|
r'^(https?\:\/\/)?(www\.|m\.)?(youtube\.be|youtu\.?be)\/.+$')
|
||||||
|
if yt_link.match(url):
|
||||||
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
# TODO: _next_songs_in_queue
|
# TODO: _next_songs_in_queue
|
||||||
@ -1663,7 +1667,7 @@ def setup(bot):
|
|||||||
try:
|
try:
|
||||||
bot.voice_clients
|
bot.voice_clients
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
raise discord.Forbidden(
|
raise RuntimeError(
|
||||||
"Your discord.py is outdated. Update to the newest one with\npip3 "
|
"Your discord.py is outdated. Update to the newest one with\npip3 "
|
||||||
"install --upgrade git+https://github.com/Rapptz/discord.py@async")
|
"install --upgrade git+https://github.com/Rapptz/discord.py@async")
|
||||||
n = Audio(bot) # Praise 26
|
n = Audio(bot) # Praise 26
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user