aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar kwzrd <[email protected]>2020-08-04 22:13:15 +0200
committerGravatar kwzrd <[email protected]>2020-08-05 14:30:26 +0200
commit04db02199c72dc0855da8ac90cb514a750dd1f22 (patch)
tree4726960bde783d7962c3a270067d41d2676fddb9
parentVerification: implement unverified role ping task (diff)
Verification: schedule ping task
-rw-r--r--bot/cogs/verification.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/bot/cogs/verification.py b/bot/cogs/verification.py
index 42088896d..5586be040 100644
--- a/bot/cogs/verification.py
+++ b/bot/cogs/verification.py
@@ -78,18 +78,20 @@ class Verification(Cog):
reminder_cache = RedisCache()
def __init__(self, bot: Bot) -> None:
- """Start `update_unverified_members` task."""
+ """Start internal tasks."""
self.bot = bot
self.update_unverified_members.start()
+ self.ping_unverified.start()
def cog_unload(self) -> None:
"""
- Kill `update_unverified_members` task.
+ Cancel internal tasks.
- This is necessary, the task is not automatically cancelled on cog unload.
+ This is necessary, as tasks are not automatically cancelled on cog unload.
"""
self.update_unverified_members.cancel()
+ self.ping_unverified.cancel()
@property
def mod_log(self) -> ModLog: