From a98bcfb4e9eb70ed2a90f4c04d4966b1ce26580c Mon Sep 17 00:00:00 2001 From: Ave Date: Sat, 13 Jun 2020 13:33:00 +0300 Subject: [PATCH] Fix robocronp fail when verificaiton isn't used Closes #73 --- cogs/robocronp.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cogs/robocronp.py b/cogs/robocronp.py index ff9904a..da88fa6 100644 --- a/cogs/robocronp.py +++ b/cogs/robocronp.py @@ -164,10 +164,9 @@ class Robocronp(Cog): # and after that every day goes here try: # Reset verification and algorithm - # If you're not using verification cog - # remove or comment thsee lines - verif_channel = self.bot.get_channel(config.welcome_channel) - await self.bot.do_resetalgo(verif_channel, "daily robocronp") + if "verification" in config.initial_cogs: + verif_channel = self.bot.get_channel(config.welcome_channel) + await self.bot.do_resetalgo(verif_channel, "daily robocronp") except: # Don't kill cronjobs if something goes wrong. await log_channel.send(