From e1361d03fac450365d4bdc8d10d8bcf2c99b479f Mon Sep 17 00:00:00 2001 From: ToxicKidz Date: Sat, 15 May 2021 12:32:10 -0400 Subject: chore: Update myvalenstate.py Removes a redundant f string, and when is one leftover match, get the first item of the match list instead of having [''] --- bot/exts/valentines/myvalenstate.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'bot') diff --git a/bot/exts/valentines/myvalenstate.py b/bot/exts/valentines/myvalenstate.py index d2409dcc..c699de94 100644 --- a/bot/exts/valentines/myvalenstate.py +++ b/bot/exts/valentines/myvalenstate.py @@ -61,8 +61,7 @@ class MyValenstate(commands.Cog): embed_text = f"You have {len(matches)} more matches, these being {leftovers}." elif len(matches) == 1: embed_title = "But there's another one!" - leftovers = str(matches) - embed_text = f"You have another match, this being {leftovers}." + embed_text = f"You have another match, this being {matches[0]}." else: embed_title = "You have a true match!" embed_text = "This state is your true Valenstate! There are no states that would suit" \ @@ -70,7 +69,7 @@ class MyValenstate(commands.Cog): embed = discord.Embed( title=f"Your Valenstate is {valenstate} \u2764", - description=f"{STATES[valenstate]['text']}", + description=STATES[valenstate]['text'], colour=Colours.pink ) embed.add_field(name=embed_title, value=embed_text) -- cgit v1.2.3