mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 13:34:40 +00:00
FX
This commit is contained in:
@@ -612,6 +612,7 @@ class MusicModule(commands.Cog):
|
||||
self.logger.info(text)
|
||||
lines = text.split("\n")
|
||||
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()@:%_\+.~#?&\/=]*)$"
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user