From d19bfca3cd3dcc54de4de83b0fc12db0d73a09f6 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Mon, 6 Sep 2021 11:50:16 +0200 Subject: [PATCH] Ajout de la source du message --- src/cogs/internet.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cogs/internet.py b/src/cogs/internet.py index 1c052da..4681f50 100644 --- a/src/cogs/internet.py +++ b/src/cogs/internet.py @@ -207,9 +207,9 @@ 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: - url_embed = url.replace("tiktok.com", "dstn.to") + url_embed = f"Tiktok partagé par {message.author.mention} • {url.replace('tiktok.com', 'dstn.to')}" if message.content == url.replace(' ',''): await message.channel.send(url_embed) await message.delete() else: - await message.reply(url_embed, mention_author = False) + await message.reply(url_embed)