suppression du double message quand un meme de reddit ne rentre pas dans un embed

This commit is contained in:
Mylloon 2021-06-01 01:01:54 +02:00
parent 06462290d5
commit 65c01f47bd

View file

@ -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('👍')