mirror of https://github.com/stijndcl/didier
				
				
				
			Set reminder timestamp back to 7 am
							parent
							
								
									a6ad6587c9
								
							
						
					
					
						commit
						6906ec13ed
					
				| 
						 | 
					@ -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()) == 0 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()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            weekday = self.getCurrentWeekday()
 | 
					            weekday = self.getCurrentWeekday()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue