diff options
Diffstat (limited to 'bot/seasons/christmas/adventofcode.py')
-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() |