aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/holidays/valentines/myvalenstate.py
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2023-05-06 16:12:32 +0100
committerGravatar Chris Lovering <[email protected]>2023-05-09 15:41:50 +0100
commit613840ebcf303e84048d48ace37fb001c1afe687 (patch)
tree9acaf0bae0527fe8389483a419b44e06997ca060 /bot/exts/holidays/valentines/myvalenstate.py
parentMigrate to ruff (diff)
Apply fixes for ruff linting
Co-authored-by: wookie184 <[email protected]> Co-authored-by: Amrou Bellalouna <[email protected]>
Diffstat (limited to 'bot/exts/holidays/valentines/myvalenstate.py')
-rw-r--r--bot/exts/holidays/valentines/myvalenstate.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/bot/exts/holidays/valentines/myvalenstate.py b/bot/exts/holidays/valentines/myvalenstate.py
index 8d8772d4..fcef24bc 100644
--- a/bot/exts/holidays/valentines/myvalenstate.py
+++ b/bot/exts/holidays/valentines/myvalenstate.py
@@ -47,7 +47,7 @@ class MyValenstate(commands.Cog):
else:
author = name.lower().replace(" ", "")
- for state in STATES.keys():
+ for state in STATES:
lower_state = state.lower().replace(" ", "")
eq_chars[state] = self.levenshtein(author, lower_state)
@@ -64,8 +64,7 @@ class MyValenstate(commands.Cog):
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" \
- " you better"
+ embed_text = "This state is your true Valenstate! There are no states that would suit you better"
embed = discord.Embed(
title=f"Your Valenstate is {valenstate} \u2764",