forgot to actually set the description
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 5s
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 5s
This commit is contained in:
parent
b8d1fbea92
commit
03cf6c0780
1 changed files with 2 additions and 2 deletions
|
@ -13,8 +13,7 @@ from discord.ext import commands
|
|||
|
||||
|
||||
SPAN_REGEX = re.compile(
|
||||
r"^(?P<party>[a-zA-Z]+)\s(?P<councillors>\d+)\scouncillors\s(?P<net>\d+)\scouncillors"
|
||||
r"\s(?P<net_change>(gained|lost))$"
|
||||
r"^(?P<party>[a-zA-Z]+)\s(?P<councillors>\d+)\scouncillors\s(?P<net>\d+)\scouncillors\s(?P<net_change>(gained|lost))$"
|
||||
)
|
||||
MULTI: dict[str, int] = {
|
||||
"gained": 1,
|
||||
|
@ -130,6 +129,7 @@ class ElectionCog(commands.Cog):
|
|||
|
||||
top_party = list(sorted(colour_scores.keys(), key=lambda k: colour_scores[k], reverse=True))[0]
|
||||
embed.colour = discord.Colour(results[top_party][2])
|
||||
embed.description = "\n".join(description_parts)
|
||||
return await ctx.respond(embed=embed)
|
||||
else:
|
||||
return await ctx.respond("Unable to get election results at this time.")
|
||||
|
|
Loading…
Reference in a new issue