fix author news
This commit is contained in:
parent
27566ceb8c
commit
817184ecf7
1 changed files with 4 additions and 1 deletions
|
@ -178,7 +178,10 @@ class Internet(commands.Cog):
|
||||||
|
|
||||||
desc = "Pas de description trouvée." if "<p>" in info.description or "</a>" in info.description else info.description
|
desc = "Pas de description trouvée." if "<p>" in info.description or "</a>" 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 = 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)
|
try:
|
||||||
|
embed.set_author(name = info.author)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
embed.set_footer(text = f"News de {choix_site.capitalize()}")
|
embed.set_footer(text = f"News de {choix_site.capitalize()}")
|
||||||
#embed.set_image(url = submission.url)
|
#embed.set_image(url = submission.url)
|
||||||
await ctx.send(embed = embed)
|
await ctx.send(embed = embed)
|
||||||
|
|
Reference in a new issue