diff options
| author | 2019-03-07 10:53:04 +0800 | |
|---|---|---|
| committer | 2019-03-07 10:53:04 +0800 | |
| commit | 34c79e6ba70ffadbb1b619415e794364b793c1f2 (patch) | |
| tree | 5417360f78ba14a9d8283eeb2e995f10a7f2cc92 /bot | |
| parent | Update season.py (diff) | |
Prevent SeasonalBot from changing server icon during off-season (non-evergreen) periods.
Diffstat (limited to 'bot')
| -rw-r--r-- | bot/seasons/season.py | 7 | 
1 files changed, 5 insertions, 2 deletions
| diff --git a/bot/seasons/season.py b/bot/seasons/season.py index 3dfa28cd..a735fbbb 100644 --- a/bot/seasons/season.py +++ b/bot/seasons/season.py @@ -334,8 +334,11 @@ class SeasonBase:          if not Client.debug:              log.info("Applying avatar.")              await self.apply_avatar() -            log.info("Applying server icon.") -            await self.apply_server_icon() +            if self.name != "evergreen": +                log.info("Applying server icon.") +                await self.apply_server_icon() +            else: +                log.info(f"Skipping server icon change due to current season being evergreen.")              if username_changed:                  log.info(f"Announcing season {self.name}.")                  await self.announce_season() | 
