Fix robocronp fail when verificaiton isn't used

Closes #73
This commit is contained in:
Ave 2020-06-13 13:33:00 +03:00
parent d8ba6b42d6
commit a98bcfb4e9
No known key found for this signature in database
GPG key ID: 398DD7BD03276F6D

View file

@ -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(