mirror of https://github.com/stijndcl/didier
wait til ready for reminders
parent
3cc08f4afd
commit
3b0ebde8ea
|
@ -204,6 +204,10 @@ class Tasks(commands.Cog):
|
||||||
lastTasks["remind"] = round(time.time())
|
lastTasks["remind"] = round(time.time())
|
||||||
json.dump(lastTasks, fp)
|
json.dump(lastTasks, fp)
|
||||||
|
|
||||||
|
@sendReminders.before_loop
|
||||||
|
async def beforeSendReminders(self):
|
||||||
|
await self.client.wait_until_ready()
|
||||||
|
|
||||||
def getCurrentHour(self):
|
def getCurrentHour(self):
|
||||||
return timeFormatters.dateTimeNow().hour
|
return timeFormatters.dateTimeNow().hour
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue