aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar kwzrd <[email protected]>2021-03-27 19:40:08 +0100
committerGravatar kwzrd <[email protected]>2021-03-27 19:40:08 +0100
commit721068e77cb0888feba465d0ba39a58aab12a7bf (patch)
treea9d0d0c6c381a9ebbef358d5dc3e4e3ceadd3642
parentBranding: revise log messages & levels (diff)
Branding: omit notification when entering evergreen
The fallback event should not produce a notification.
-rw-r--r--bot/exts/backend/branding/_cog.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/exts/backend/branding/_cog.py b/bot/exts/backend/branding/_cog.py
index 38ec279cd..e12706c32 100644
--- a/bot/exts/backend/branding/_cog.py
+++ b/bot/exts/backend/branding/_cog.py
@@ -300,7 +300,7 @@ class Branding(commands.Cog):
An event change should always be handled via this function, as it ensures that the cache is populated.
- The #changelog notification is sent only if `event` differs from the currently cached event.
+ The #changelog notification is omitted when `event` is fallback, or already applied.
Return a 2-tuple indicating whether the banner, and the icon, were applied successfully.
"""
@@ -321,10 +321,10 @@ class Branding(commands.Cog):
await self.populate_cache_event_description(event)
# Notify guild of new event ~ this reads the information that we cached above.
- if event_changed:
+ if event_changed and not event.meta.is_fallback:
await self.send_info_embed(Channels.change_log)
else:
- log.trace("Omitted #changelog notification as event has not changed. Assuming manual re-sync.")
+ log.trace("Omitting #changelog notification. Event has not changed, or new event is fallback.")
return banner_success, icon_success