aboutsummaryrefslogtreecommitdiffstats
path: root/bot
diff options
context:
space:
mode:
authorGravatar Joseph Banks <[email protected]>2018-12-26 11:16:44 +0000
committerGravatar Joseph Banks <[email protected]>2018-12-26 11:16:44 +0000
commit049a42d825fe12fe611783dff5531f4fd05af56c (patch)
tree0e06aaa6c5bf793888c1d7f986738d4db2c9c899 /bot
parentAdd a notice to AoC countdown to find out if we are still in the advent of code (diff)
Address review comments
Diffstat (limited to 'bot')
-rw-r--r--bot/seasons/christmas/adventofcode.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bot/seasons/christmas/adventofcode.py b/bot/seasons/christmas/adventofcode.py
index af72466b..261762fd 100644
--- a/bot/seasons/christmas/adventofcode.py
+++ b/bot/seasons/christmas/adventofcode.py
@@ -181,7 +181,10 @@ class AdventOfCode:
Return time left until next day
"""
if not is_in_advent():
- await ctx.send(f"Advent of Code is no longer running this year! Come back next year for more puzzles!")
+ datetime_now = datetime.datetime.now(EST)
+ december_first = datetime.datetime(datetime_now.year + 1, 12, 1, tzinfo=EST)
+ delta = december_first - datetime_now
+ await ctx.send(f"Advent of Code event is not currently running. The next event will start in {delta.days} days.")
return
tomorrow, time_left = time_left_to_aoc_midnight()