Add more metadata to embed
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 8s
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 8s
This commit is contained in:
parent
59e208b4c7
commit
7004911783
1 changed files with 4 additions and 2 deletions
|
@ -111,11 +111,13 @@ class ElectionCog(commands.Cog):
|
|||
soup = await asyncio.to_thread(BeautifulSoup, response.text, "html.parser")
|
||||
results = await self.bot.loop.run_in_executor(None, self.process_soup, soup)
|
||||
if results:
|
||||
date = datetime.datetime.now().date().strftime("%B %Y")
|
||||
now = discord.utils.utcnow()
|
||||
date = now.date().strftime("%B %Y")
|
||||
colour_scores = {}
|
||||
embed = discord.Embed(
|
||||
title="Election results - " + date,
|
||||
url="https://bbc.co.uk/"
|
||||
url="https://bbc.co.uk/",
|
||||
timestamp=now
|
||||
)
|
||||
embed.set_footer(text="Source from bbc.co.uk.")
|
||||
description_parts = []
|
||||
|
|
Loading…
Reference in a new issue