aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar kwzrd <[email protected]>2021-03-13 14:08:11 +0100
committerGravatar kwzrd <[email protected]>2021-03-13 14:08:11 +0100
commit88111ccab42e6ff686cb1dc4ff2416f0b409c14a (patch)
tree6743a8ac9dbc5c69dc45f442697af04942f1fc09
parentBranding: lock commands to mods+ where necessary (diff)
Branding: add missing early exit
-rw-r--r--bot/exts/backend/branding/_cog.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bot/exts/backend/branding/_cog.py b/bot/exts/backend/branding/_cog.py
index 61ae46923..f5bad21ac 100644
--- a/bot/exts/backend/branding/_cog.py
+++ b/bot/exts/backend/branding/_cog.py
@@ -158,6 +158,7 @@ class Branding(commands.Cog):
if last_rotation_timestamp is None: # Maiden case ~ never rotated
await self.rotate_icons()
+ return
last_rotation = datetime.fromtimestamp(last_rotation_timestamp)
difference = (datetime.utcnow() - last_rotation) + timedelta(minutes=5)