mirror of
https://github.com/stijndcl/didier.git
synced 2026-04-07 15:48:29 +02:00
Send reminders at 7 am instead of 10 pm
This commit is contained in:
parent
95bdc576e1
commit
3cc08f4afd
1 changed files with 1 additions and 1 deletions
|
|
@ -183,7 +183,7 @@ class Tasks(commands.Cog):
|
||||||
# Don't do it multiple times a day if bot dc's, ...
|
# Don't do it multiple times a day if bot dc's, ...
|
||||||
with open("files/lastTasks.json", "r") as fp:
|
with open("files/lastTasks.json", "r") as fp:
|
||||||
lastTasks = json.load(fp)
|
lastTasks = json.load(fp)
|
||||||
if int(self.getCurrentHour()) == 22 and int(time.time()) - int(lastTasks["remind"]) > 10000:
|
if int(self.getCurrentHour()) == 7 and int(time.time()) - int(lastTasks["remind"]) > 10000:
|
||||||
reminders = Reminders()
|
reminders = Reminders()
|
||||||
|
|
||||||
for category in reminders.categories:
|
for category in reminders.categories:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue