diff options
author | 2018-12-26 09:38:37 +0000 | |
---|---|---|
committer | 2018-12-26 09:38:37 +0000 | |
commit | 7877a47182acae5413c2bbd49863fb0227425c34 (patch) | |
tree | 802a71dc6252a8c990937b1c4ac5434013ee4648 /bot/seasons/christmas/adventofcode.py | |
parent | Fix is_in_advent() function (diff) |
Add a notice to AoC countdown to find out if we are still in the advent of code
Diffstat (limited to 'bot/seasons/christmas/adventofcode.py')
-rw-r--r-- | bot/seasons/christmas/adventofcode.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bot/seasons/christmas/adventofcode.py b/bot/seasons/christmas/adventofcode.py index f9ca9f01..af72466b 100644 --- a/bot/seasons/christmas/adventofcode.py +++ b/bot/seasons/christmas/adventofcode.py @@ -180,6 +180,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!") + return + tomorrow, time_left = time_left_to_aoc_midnight() hours, minutes = time_left.seconds // 3600, time_left.seconds // 60 % 60 |