fix bug targeting ALL links instead of only tiktok
This commit is contained in:
parent
174072f645
commit
f4c43eb150
1 changed files with 2 additions and 0 deletions
|
@ -207,6 +207,8 @@ class Internet(commands.Cog):
|
|||
return
|
||||
urls = findall(r'http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+', message.content)
|
||||
for url in urls:
|
||||
if "tiktok.com" not in url:
|
||||
return
|
||||
url_embed = url.replace("tiktok.com", "dstn.to")
|
||||
if message.content == url.replace(" ", ""):
|
||||
await message.channel.send(f"Tiktok partagé par {message.author.mention} • {url.replace('tiktok.com', 'dstn.to')}")
|
||||
|
|
Reference in a new issue