handle Client error event
This commit is contained in:
		
							parent
							
								
									b176fe8184
								
							
						
					
					
						commit
						416b79ca97
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
					@ -67,4 +67,8 @@ bot.on("ready", async () => {
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					bot.on("error", (err) => {
 | 
				
			||||||
 | 
					  logger.error("hf:main", "Catching error: " + err);
 | 
				
			||||||
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
bot.connect();
 | 
					bot.connect();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue