aboutsummaryrefslogtreecommitdiffstats
path: root/bot/seasons/halloween/timeleft.py
diff options
context:
space:
mode:
authorGravatar sco1 <[email protected]>2019-04-24 17:20:30 -0400
committerGravatar sco1 <[email protected]>2019-04-24 17:20:30 -0400
commitb611ff92ea69cc1ac6b82aa3f06b9d9675e86a82 (patch)
tree0fdb47359609c44479a331b5684dcb3d50a1ff56 /bot/seasons/halloween/timeleft.py
parentRemove docstring newline linting from ignored codes (diff)
Relint Seasonalbot with new linting rules
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")