aboutsummaryrefslogtreecommitdiffstats
path: root/bot/resources/advent_of_code
diff options
context:
space:
mode:
authorGravatar S. Co1 <[email protected]>2019-11-30 15:42:38 -0500
committerGravatar S. Co1 <[email protected]>2019-11-30 15:42:38 -0500
commitcff62e0baf1eb3c6105431c695ef3b0e679576db (patch)
treedc1b68ee73b15b32ebfd12f1001d1603a7d47d2a /bot/resources/advent_of_code
parentUpdate icon path for 2019 festive season (#316) (diff)
Fix AOC countdown logic
The current time delta until the next AOC event assumes that the next event is next year's. While this is was a safe assumption when written, since the command would not be available until the season is loaded on December 1st, it provides an incorrect answer if the season is loaded prior. The logic has been adjusted to return the closest December 1st that is not in the past. The feedback string has also been adjusted to give hours remaining if we're less than a day away from the event starting.
Diffstat (limited to 'bot/resources/advent_of_code')
0 files changed, 0 insertions, 0 deletions