aboutsummaryrefslogtreecommitdiffstats
path: root/bot/seasons/christmas/adventofcode.py
diff options
context:
space:
mode:
authorGravatar kwzrd <[email protected]>2020-02-23 20:09:26 +0100
committerGravatar kwzrd <[email protected]>2020-02-23 20:09:26 +0100
commit9330b404316cb00379f6eb5074b7ace842cedc8b (patch)
tree7a23091700eba50711e1232f444368c4711ccd0f /bot/seasons/christmas/adventofcode.py
parentAdd icon cycle frequency constant (diff)
Cycle icons within season in configured interval only
The `load_seasons` task now has an internal state, which increments for every day. Before cycling the icon within the same season, first check whether we've waited the configured amount of days since the last cycle. Entering a new season, or changing the icon, resets the state to 0. This allows us to slow down the rate at which we cycle icons, addressing a bug where the icon wasn't loading for some users.
Diffstat (limited to 'bot/seasons/christmas/adventofcode.py')
0 files changed, 0 insertions, 0 deletions