aboutsummaryrefslogtreecommitdiffstats
path: root/bot/seasons/halloween/timeleft.py
diff options
context:
space:
mode:
authorGravatar S. Co1 <[email protected]>2019-05-30 20:27:23 -0400
committerGravatar GitHub <[email protected]>2019-05-30 20:27:23 -0400
commit484f61b04c0cfa5c02a2047c1f3fc7f34418d212 (patch)
tree88258e0b987f9bc31bef53f5afcf90074eb4233b /bot/seasons/halloween/timeleft.py
parentMerge pull request #211 from RohanRadia/master (diff)
parentFix snake draw command (diff)
Merge pull request #200 from python-discord/docstring-lint-change
Docstring lint change
Diffstat (limited to 'bot/seasons/halloween/timeleft.py')
-rw-r--r--bot/seasons/halloween/timeleft.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/bot/seasons/halloween/timeleft.py b/bot/seasons/halloween/timeleft.py
index 3ea2d9ad..a2b16a6c 100644
--- a/bot/seasons/halloween/timeleft.py
+++ b/bot/seasons/halloween/timeleft.py
@@ -15,13 +15,11 @@ class TimeLeft(commands.Cog):
@staticmethod
def in_october():
"""Return True if the current month is October."""
-
return datetime.utcnow().month == 10
@staticmethod
def load_date():
"""Return of a tuple of the current time and the end and start times of the next October."""
-
now = datetime.utcnow()
year = now.year
if now.month > 10:
@@ -38,7 +36,6 @@ class TimeLeft(commands.Cog):
Whilst in October, displays the days, hours and minutes left.
Only displays the days left until the beginning and end whilst in a different month
"""
-
now, end, start = self.load_date()
diff = end - now
days, seconds = diff.days, diff.seconds
@@ -58,6 +55,5 @@ class TimeLeft(commands.Cog):
def setup(bot):
"""Cog load."""
-
bot.add_cog(TimeLeft(bot))
log.info("TimeLeft cog loaded")