diff --git a/src/cogs/election.py b/src/cogs/election.py index 119e53c..db32c2b 100644 --- a/src/cogs/election.py +++ b/src/cogs/election.py @@ -13,8 +13,7 @@ from discord.ext import commands SPAN_REGEX = re.compile( - r"^(?P[a-zA-Z]+)\s(?P\d+)\scouncillors\s(?P\d+)\scouncillors" - r"\s(?P(gained|lost))$" + r"^(?P[a-zA-Z]+)\s(?P\d+)\scouncillors\s(?P\d+)\scouncillors\s(?P(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.")