aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar wookie184 <[email protected]>2022-08-06 23:29:26 +0100
committerGravatar wookie184 <[email protected]>2022-08-06 23:29:26 +0100
commiteaecf342ea647095f312a0b450cf65e91cc1907e (patch)
treeda41f2bcbbb1e157ac8d2d552d55ac20b8ac3a4d
parentMake handling of reviews over multiple messages more robust (diff)
Dont await tasks.loop methods
-rw-r--r--bot/exts/recruitment/talentpool/_cog.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/exts/recruitment/talentpool/_cog.py b/bot/exts/recruitment/talentpool/_cog.py
index d8dd9ff8e..e52b0f307 100644
--- a/bot/exts/recruitment/talentpool/_cog.py
+++ b/bot/exts/recruitment/talentpool/_cog.py
@@ -43,7 +43,7 @@ class TalentPool(Cog, name="Talentpool"):
await self.refresh_cache()
if await self.autoreview_enabled():
- await self.autoreview_loop.start()
+ self.autoreview_loop.start()
async def autoreview_enabled(self) -> bool:
"""Return whether automatic posting of nomination reviews is enabled."""
@@ -102,7 +102,7 @@ class TalentPool(Cog, name="Talentpool"):
return
await self.talentpool_settings.set(AUTOREVIEW_ENABLED_KEY, True)
- await self.autoreview_loop.start()
+ self.autoreview_loop.start()
await ctx.send(":white_check_mark: Autoreview enabled.")
@nomination_autoreview_group.command(name="disable", aliases=("off",))
@@ -114,7 +114,7 @@ class TalentPool(Cog, name="Talentpool"):
return
await self.talentpool_settings.set(AUTOREVIEW_ENABLED_KEY, False)
- await self.autoreview_loop.stop()
+ self.autoreview_loop.stop()
await ctx.send(":white_check_mark: Autoreview disabled.")
@nomination_autoreview_group.command(name="status")