From 03cf6c0780d35ba2964b464a2c63e78959c04935 Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Fri, 3 May 2024 20:29:00 +0100 Subject: [PATCH] forgot to actually set the description --- src/cogs/election.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.")