diff options
| author | 2021-05-15 12:32:10 -0400 | |
|---|---|---|
| committer | 2021-05-15 12:32:10 -0400 | |
| commit | e1361d03fac450365d4bdc8d10d8bcf2c99b479f (patch) | |
| tree | d8b6a014f2c19e0240c98ca98351e8e191642ef6 /bot/exts | |
| parent | fix: Resolve merge conflicts again (diff) | |
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 ['<match>']
Diffstat (limited to 'bot/exts')
| -rw-r--r-- | bot/exts/valentines/myvalenstate.py | 5 | 
1 files changed, 2 insertions, 3 deletions
| 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) | 
