diff options
author | 2018-12-26 11:16:44 +0000 | |
---|---|---|
committer | 2018-12-26 11:16:44 +0000 | |
commit | 049a42d825fe12fe611783dff5531f4fd05af56c (patch) | |
tree | 0e06aaa6c5bf793888c1d7f986738d4db2c9c899 | |
parent | Add a notice to AoC countdown to find out if we are still in the advent of code (diff) |
Address review comments
-rw-r--r-- | bot/seasons/christmas/adventofcode.py | 5 |
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() |