diff options
| author | 2021-03-13 14:08:11 +0100 | |
|---|---|---|
| committer | 2021-03-13 14:08:11 +0100 | |
| commit | 88111ccab42e6ff686cb1dc4ff2416f0b409c14a (patch) | |
| tree | 6743a8ac9dbc5c69dc45f442697af04942f1fc09 | |
| parent | Branding: lock commands to mods+ where necessary (diff) | |
Branding: add missing early exit
| -rw-r--r-- | bot/exts/backend/branding/_cog.py | 1 |
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) |