diff options
| author | 2021-05-04 15:44:31 -0400 | |
|---|---|---|
| committer | 2021-05-04 15:44:31 -0400 | |
| commit | 6d31315fa72ca9e6ccd7553e78548fed6e5e4829 (patch) | |
| tree | 59632d71bab9bfcb5387743ab8d263d394f13943 /bot/exts/valentines/myvalenstate.py | |
| parent | Apply suggested changes to hanukkah_embed.py (diff) | |
fix: Pass bot only when __init__ is defined
Diffstat (limited to 'bot/exts/valentines/myvalenstate.py')
| -rw-r--r-- | bot/exts/valentines/myvalenstate.py | 7 | 
1 files changed, 2 insertions, 5 deletions
| diff --git a/bot/exts/valentines/myvalenstate.py b/bot/exts/valentines/myvalenstate.py index 7a0f8318..1c67984b 100644 --- a/bot/exts/valentines/myvalenstate.py +++ b/bot/exts/valentines/myvalenstate.py @@ -19,9 +19,6 @@ with open(Path("bot/resources/valentines/valenstates.json"), "r", encoding="utf8  class MyValenstate(commands.Cog):      """A Cog to find your most likely Valentine's vacation destination.""" -    def __init__(self, bot: commands.Bot): -        self.bot = bot -      def levenshtein(self, source: str, goal: str) -> int:          """Calculates the Levenshtein Distance between source and goal."""          if len(source) < len(goal): @@ -83,5 +80,5 @@ class MyValenstate(commands.Cog):  def setup(bot: Bot) -> None: -    """Valenstate Cog load.""" -    bot.add_cog(MyValenstate(bot)) +    """Load the Valenstate Cog.""" +    bot.add_cog(MyValenstate()) | 
