private reminders: wait until ready to register timer
This commit is contained in:
		
							parent
							
								
									a259ee8da2
								
							
						
					
					
						commit
						4c718e3a9a
					
				
					 1 changed files with 31 additions and 29 deletions
				
			
		| 
						 | 
					@ -68,6 +68,7 @@ function getLastRun(id) {
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					hf.bot.once("ready", () => {
 | 
				
			||||||
  timer.add(
 | 
					  timer.add(
 | 
				
			||||||
    "private_reminders",
 | 
					    "private_reminders",
 | 
				
			||||||
    async () => {
 | 
					    async () => {
 | 
				
			||||||
| 
						 | 
					@ -101,3 +102,4 @@ timer.add(
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    1000
 | 
					    1000
 | 
				
			||||||
  );
 | 
					  );
 | 
				
			||||||
 | 
					});
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue