correct message

This commit is contained in:
Mylloon 2021-11-14 12:47:44 +01:00
parent 90e5d6a1e9
commit 4234730041

View file

@ -210,8 +210,9 @@ class Internet(commands.Cog):
if "tiktok.com" not in url: if "tiktok.com" not in url:
return return
url_embed = url.replace("tiktok.com", "dstn.to") url_embed = url.replace("tiktok.com", "dstn.to")
mergeUrls = f"{url_embed} | <{url}>"
if message.content == url.replace(" ", ""): if message.content == url.replace(" ", ""):
await message.channel.send(f"Tiktok partagé par {message.author.mention}{url_embed} | <{url}>") await message.channel.send(f"Tiktok partagé par {message.author.mention}{mergeUrls}")
await message.delete() await message.delete()
else: else:
await message.reply(f"{url_embed}", mention_author = False) await message.reply(f"{mergeUrls}", mention_author = False)