aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar mbaruh <[email protected]>2021-04-17 01:19:54 +0300
committerGravatar mbaruh <[email protected]>2021-04-17 01:19:54 +0300
commit2053b2e36ece02680ed85b970c4fbf687fe07e0f (patch)
tree8f399b5f2b712c95a3e2a1171be65fd7819d289b
parentKeep config succint (diff)
Assume a scheduled task exists for `duty on`
The lack of such a task may be indicative of a bug.
-rw-r--r--bot/exts/moderation/duty.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/bot/exts/moderation/duty.py b/bot/exts/moderation/duty.py
index 0b07510db..8d0c96363 100644
--- a/bot/exts/moderation/duty.py
+++ b/bot/exts/moderation/duty.py
@@ -118,8 +118,7 @@ class Duty(Cog):
await self.off_duty_mods.delete(mod.id)
- if mod.id in self._role_scheduler:
- self._role_scheduler.cancel(mod.id)
+ self._role_scheduler.cancel(mod.id)
await ctx.send(f"{Emojis.check_mark} Moderators role has been re-applied.")