fix robocronp
This commit is contained in:
parent
8415e1f787
commit
a7967b9f97
1 changed files with 3 additions and 1 deletions
|
@ -1,4 +1,3 @@
|
||||||
import asyncio
|
|
||||||
import config
|
import config
|
||||||
import time
|
import time
|
||||||
import discord
|
import discord
|
||||||
|
@ -120,6 +119,7 @@ class Robocronp(Cog):
|
||||||
|
|
||||||
@tasks.loop(minutes=1)
|
@tasks.loop(minutes=1)
|
||||||
async def minutely(self):
|
async def minutely(self):
|
||||||
|
await self.bot.wait_until_ready()
|
||||||
log_channel = self.bot.get_channel(config.botlog_channel)
|
log_channel = self.bot.get_channel(config.botlog_channel)
|
||||||
try:
|
try:
|
||||||
ctab = get_crontab()
|
ctab = get_crontab()
|
||||||
|
@ -140,6 +140,7 @@ class Robocronp(Cog):
|
||||||
|
|
||||||
@tasks.loop(hours=1)
|
@tasks.loop(hours=1)
|
||||||
async def hourly(self):
|
async def hourly(self):
|
||||||
|
await self.bot.wait_until_ready()
|
||||||
log_channel = self.bot.get_channel(config.botlog_channel)
|
log_channel = self.bot.get_channel(config.botlog_channel)
|
||||||
try:
|
try:
|
||||||
await self.send_data()
|
await self.send_data()
|
||||||
|
@ -154,6 +155,7 @@ class Robocronp(Cog):
|
||||||
|
|
||||||
@tasks.loop(hours=24)
|
@tasks.loop(hours=24)
|
||||||
async def daily(self):
|
async def daily(self):
|
||||||
|
await self.bot.wait_until_ready()
|
||||||
log_channel = self.bot.get_channel(config.botlog_channel)
|
log_channel = self.bot.get_channel(config.botlog_channel)
|
||||||
try:
|
try:
|
||||||
# Reset verification and algorithm
|
# Reset verification and algorithm
|
||||||
|
|
Loading…
Reference in a new issue