aboutsummaryrefslogtreecommitdiffstats
path: root/bot/seasons/valentines/myvalenstate.py
diff options
context:
space:
mode:
Diffstat (limited to 'bot/seasons/valentines/myvalenstate.py')
-rw-r--r--bot/seasons/valentines/myvalenstate.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/bot/seasons/valentines/myvalenstate.py b/bot/seasons/valentines/myvalenstate.py
index 344f52f6..fad202e3 100644
--- a/bot/seasons/valentines/myvalenstate.py
+++ b/bot/seasons/valentines/myvalenstate.py
@@ -11,7 +11,7 @@ from bot.constants import Colours
log = logging.getLogger(__name__)
-with open(Path('bot', 'resources', 'valentines', 'valenstates.json'), 'r') as file:
+with open(Path("bot/resources/valentines/valenstates.json"), "r") as file:
STATES = json.load(file)
@@ -23,7 +23,6 @@ class MyValenstate(commands.Cog):
def levenshtein(self, source, goal):
"""Calculates the Levenshtein Distance between source and goal."""
-
if len(source) < len(goal):
return self.levenshtein(goal, source)
if len(source) == 0:
@@ -45,7 +44,6 @@ class MyValenstate(commands.Cog):
@commands.command()
async def myvalenstate(self, ctx, *, name=None):
"""Find the vacation spot(s) with the most matching characters to the invoking user."""
-
eq_chars = collections.defaultdict(int)
if name is None:
author = ctx.message.author.name.lower().replace(' ', '')
@@ -85,6 +83,5 @@ class MyValenstate(commands.Cog):
def setup(bot):
"""Valenstate Cog load."""
-
bot.add_cog(MyValenstate(bot))
log.info("MyValenstate cog loaded")