mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-15 14:22:13 +00:00
fx
This commit is contained in:
+5
-2
@@ -614,6 +614,7 @@ class MusicModule(commands.Cog):
|
|||||||
for link in lines:
|
for link in lines:
|
||||||
self.logger.info(link)
|
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()@:%_\+.~#?&\/=]*)$"
|
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)):
|
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)
|
self.logger.info("%s to link do jutuba", link)
|
||||||
elif re.match(pat, link) and re.match(".*spotify.*", link):
|
elif re.match(pat, link) and re.match(".*spotify.*", link):
|
||||||
@@ -621,9 +622,11 @@ class MusicModule(commands.Cog):
|
|||||||
elif re.match(pat, link):
|
elif re.match(pat, link):
|
||||||
self.logger.info("%s to link do czegos", link)
|
self.logger.info("%s to link do czegos", link)
|
||||||
else:
|
else:
|
||||||
ctx.reply("Spierdalaj")
|
self.logger.info("Spierdalaj")
|
||||||
|
ctx.message.reply("Spierdalaj")
|
||||||
else:
|
else:
|
||||||
ctx.reply("Spierdalaj")
|
self.logger.info("Spierdalaj")
|
||||||
|
ctx.message.reply("Spierdalaj")
|
||||||
|
|
||||||
|
|
||||||
async def disconnect(self, ctx):
|
async def disconnect(self, ctx):
|
||||||
|
|||||||
Reference in New Issue
Block a user