aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ChrisJL <[email protected]>2022-02-15 11:27:11 +0000
committerGravatar GitHub <[email protected]>2022-02-15 11:27:11 +0000
commit833d2e5201028e90dfb9e84da4766fba498dc04a (patch)
treedc36269fbae04e493f57cc2d70f47df68ac93854
parentMerge pull request #778 from python-discord/merge-github-issues (diff)
Disable AoC completionist task
This disabled the completionist task that checks the leaderboard for people who have 50 stars and gives out the role. Since the event is running, we are not keeping the session cookies up to date, so this is flooding #dev-log with errors. This task should be altered in preparation for next event so that commenting out this line isn't required. Co-authored-by: ToxicKidz <[email protected]>
-rw-r--r--bot/exts/events/advent_of_code/_cog.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/exts/events/advent_of_code/_cog.py b/bot/exts/events/advent_of_code/_cog.py
index 3acfef39..518841d4 100644
--- a/bot/exts/events/advent_of_code/_cog.py
+++ b/bot/exts/events/advent_of_code/_cog.py
@@ -61,7 +61,8 @@ class AdventOfCode(commands.Cog):
self.status_task.set_name("AoC Status Countdown")
self.status_task.add_done_callback(_helpers.background_task_callback)
- self.completionist_task.start()
+ # Don't start task while event isn't running
+ # self.completionist_task.start()
@tasks.loop(minutes=10.0)
async def completionist_task(self) -> None: