forgot to actually set the description
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 5s

This commit is contained in:
Nexus 2024-05-03 20:29:00 +01:00
parent b8d1fbea92
commit 03cf6c0780
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -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.")