This commit is contained in:
2024-11-10 19:53:22 +01:00
parent 3d02d06862
commit bda7c6cc2e
+5 -2
View File
@@ -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):