diff --git a/cogs/internet.py b/cogs/internet.py index 6e05a08..ac3bf98 100644 --- a/cogs/internet.py +++ b/cogs/internet.py @@ -176,9 +176,8 @@ class Internet(commands.Cog): newsfeed = feedparser.parse(rss_website[choix_site]) info = choice([newsfeed.entries[i] for i in range(0, 10 if len(newsfeed.entries) > 10 else len(newsfeed.entries))]) - desc = f"\n\n{info.description}" - final_desc = "Pas de description trouvée." if "
" in desc or "" in desc else desc - embed = discord.Embed(title = info.title, color = randint(0, 0xFFFFFF), description = f"[**lien de la news**]({info.link}){final_desc}") + desc = "Pas de description trouvée." if "
" in info.description or "" in info.description else info.description + embed = discord.Embed(title = info.title, color = randint(0, 0xFFFFFF), description = f"[**lien de la news**]({info.link})\n\n{desc}") embed.set_author(name = info.author) embed.set_footer(text = f"News de {choix_site.capitalize()}") #embed.set_image(url = submission.url)