wait til ready for reminders

pull/4/head
Stijn De Clercq 2020-10-23 22:15:22 +02:00
parent 3cc08f4afd
commit 3b0ebde8ea
1 changed files with 4 additions and 0 deletions

View File

@ -204,6 +204,10 @@ class Tasks(commands.Cog):
lastTasks["remind"] = round(time.time())
json.dump(lastTasks, fp)
@sendReminders.before_loop
async def beforeSendReminders(self):
await self.client.wait_until_ready()
def getCurrentHour(self):
return timeFormatters.dateTimeNow().hour