aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/halloween/timeleft.py
diff options
context:
space:
mode:
authorGravatar ToxicKidz <[email protected]>2021-04-19 17:04:11 -0400
committerGravatar ToxicKidz <[email protected]>2021-04-19 17:04:11 -0400
commitae64ddd3e7d731a44a1684c93d67ea6334b120d2 (patch)
tree8373f0171385d4065157ce0a4db5e686769ef272 /bot/exts/halloween/timeleft.py
parentMerge pull request #673 from janine9vn/int-eval (diff)
Clean Up the Halloween Season
- Change commands.Bot type hints to bot.Bot - Remove the setting of Cog.bot if it isn't being used - Use Bot.http_session instead of creating new ones - Keep string quotes and Doc-Strings consistant - Remove redundant/outdated code Ignored spookyavatar.py as it is being moved in another PR.
Diffstat (limited to 'bot/exts/halloween/timeleft.py')
-rw-r--r--bot/exts/halloween/timeleft.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/bot/exts/halloween/timeleft.py b/bot/exts/halloween/timeleft.py
index 47adb09b..f4ab9284 100644
--- a/bot/exts/halloween/timeleft.py
+++ b/bot/exts/halloween/timeleft.py
@@ -4,13 +4,15 @@ from typing import Tuple
from discord.ext import commands
+from bot.bot import Bot
+
log = logging.getLogger(__name__)
class TimeLeft(commands.Cog):
"""A Cog that tells you how long left until Hacktober is over!"""
- def __init__(self, bot: commands.Bot):
+ def __init__(self, bot: Bot):
self.bot = bot
def in_hacktober(self) -> bool:
@@ -64,6 +66,6 @@ class TimeLeft(commands.Cog):
)
-def setup(bot: commands.Bot) -> None:
- """Cog load."""
+def setup(bot: Bot) -> None:
+ """Load the Time Left Cog."""
bot.add_cog(TimeLeft(bot))