aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/halloween/timeleft.py
diff options
context:
space:
mode:
authorGravatar ToxicKidz <[email protected]>2021-05-04 15:44:31 -0400
committerGravatar ToxicKidz <[email protected]>2021-05-04 15:44:31 -0400
commit6d31315fa72ca9e6ccd7553e78548fed6e5e4829 (patch)
tree59632d71bab9bfcb5387743ab8d263d394f13943 /bot/exts/halloween/timeleft.py
parentApply suggested changes to hanukkah_embed.py (diff)
fix: Pass bot only when __init__ is defined
Diffstat (limited to 'bot/exts/halloween/timeleft.py')
-rw-r--r--bot/exts/halloween/timeleft.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/bot/exts/halloween/timeleft.py b/bot/exts/halloween/timeleft.py
index f4ab9284..e80025dc 100644
--- a/bot/exts/halloween/timeleft.py
+++ b/bot/exts/halloween/timeleft.py
@@ -12,9 +12,6 @@ log = logging.getLogger(__name__)
class TimeLeft(commands.Cog):
"""A Cog that tells you how long left until Hacktober is over!"""
- def __init__(self, bot: Bot):
- self.bot = bot
-
def in_hacktober(self) -> bool:
"""Return True if the current time is within Hacktoberfest."""
_, end, start = self.load_date()
@@ -68,4 +65,4 @@ class TimeLeft(commands.Cog):
def setup(bot: Bot) -> None:
"""Load the Time Left Cog."""
- bot.add_cog(TimeLeft(bot))
+ bot.add_cog(TimeLeft())