mirror of
https://github.com/stijndcl/didier.git
synced 2026-04-07 15:48:29 +02:00
wait til ready for reminders
This commit is contained in:
parent
3cc08f4afd
commit
3b0ebde8ea
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue