mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 21:38:38 +00:00
fx
This commit is contained in:
+5
-2
@@ -614,6 +614,7 @@ class MusicModule(commands.Cog):
|
||||
for link in lines:
|
||||
self.logger.info(link)
|
||||
pat = r"^https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_\+.~#?&\/=]*)$"
|
||||
self.logger.info("Verification")
|
||||
if re.match(pat, link) and (re.match(".*youtube.*", link) or re.match(".*youtu.be.*", link)):
|
||||
self.logger.info("%s to link do jutuba", link)
|
||||
elif re.match(pat, link) and re.match(".*spotify.*", link):
|
||||
@@ -621,9 +622,11 @@ class MusicModule(commands.Cog):
|
||||
elif re.match(pat, link):
|
||||
self.logger.info("%s to link do czegos", link)
|
||||
else:
|
||||
ctx.reply("Spierdalaj")
|
||||
self.logger.info("Spierdalaj")
|
||||
ctx.message.reply("Spierdalaj")
|
||||
else:
|
||||
ctx.reply("Spierdalaj")
|
||||
self.logger.info("Spierdalaj")
|
||||
ctx.message.reply("Spierdalaj")
|
||||
|
||||
|
||||
async def disconnect(self, ctx):
|
||||
|
||||
Reference in New Issue
Block a user