From 65c01f47bd67caec84a951fd0cbe1fbc981d4623 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 1 Jun 2021 01:01:54 +0200 Subject: [PATCH] suppression du double message quand un meme de reddit ne rentre pas dans un embed --- src/cogs/internet.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cogs/internet.py b/src/cogs/internet.py index 248cddf..cda9fd9 100644 --- a/src/cogs/internet.py +++ b/src/cogs/internet.py @@ -51,8 +51,7 @@ class Internet(commands.Cog): embed.set_image(url = submission.url) message = await ctx.send(embed = embed) else: - await ctx.send(f"```r/{subredditchoix} pour {ctx.author.name}```\n{submission.url}") - message = await ctx.send("```Meme de Reddit```") + message = await ctx.send(f"```r/{subredditchoix} pour {ctx.author.name}```\n{submission.url}") if fromSlash != True: await ctx.message.add_reaction(emoji = '✅') await message.add_reaction('👍')