Add RSS Source · Embed

This commit is contained in:
Corban-Lee Jones 2023-12-16 17:55:21 +00:00
parent 41887472df
commit 1320ab5e26

View File

@ -157,11 +157,9 @@ class CommandCog(commands.Cog):
inter.user.id, database=database
)
embed = Embed(
title=f"New RSS Source: **{nickname}**",
url=url,
colour=Colour.from_str("#59ff00")
)
embed = Embed(title="RSS Feed Added", colour=Colour.from_str("#59ff00"))
embed.add_field(name="Nickname", value=nickname)
embed.add_field(name="URL", value=url)
embed.set_thumbnail(url=feed.get("feed", {}).get("image", {}).get("href"))
# , f"RSS source added [{nickname}]({url})", suppress_embeds=True