aboutsummaryrefslogtreecommitdiffstats
path: root/bot/seasons/christmas/adventofcode.py
diff options
context:
space:
mode:
authorGravatar Joseph Banks <[email protected]>2018-12-26 15:52:51 +0000
committerGravatar Joseph Banks <[email protected]>2018-12-26 15:52:51 +0000
commit7baf9362a1957392e67f270ef53b37a455794008 (patch)
tree53f06a8fc7409022193d08de0efdf9f4d8bbf602 /bot/seasons/christmas/adventofcode.py
parentMerge pull request #92 from python-discord/fix-advent-of-code-countdown (diff)
Fixing error in advent of code countdown by removing datetime prefixes
Diffstat (limited to 'bot/seasons/christmas/adventofcode.py')
-rw-r--r--bot/seasons/christmas/adventofcode.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/seasons/christmas/adventofcode.py b/bot/seasons/christmas/adventofcode.py
index 486d3b18..3b199a4a 100644
--- a/bot/seasons/christmas/adventofcode.py
+++ b/bot/seasons/christmas/adventofcode.py
@@ -181,8 +181,8 @@ class AdventOfCode:
Return time left until next day
"""
if not is_in_advent():
- datetime_now = datetime.datetime.now(EST)
- december_first = datetime.datetime(datetime_now.year + 1, 12, 1, tzinfo=EST)
+ datetime_now = datetime.now(EST)
+ december_first = datetime(datetime_now.year + 1, 12, 1, tzinfo=EST)
delta = december_first - datetime_now
await ctx.send(f"The Advent of Code event is not currently running. "
f"The next event will start in {delta.days} days.")