Add a console message when stopping the server with ctrl-c
This commit is contained in:
		
							parent
							
								
									6f85cf3cc2
								
							
						
					
					
						commit
						f386855ed1
					
				
							
								
								
									
										4
									
								
								index.js
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								index.js
									
									
									
									
									
								
							| 
						 | 
					@ -7,6 +7,10 @@ client.on('ready', () => {
 | 
				
			||||||
    console.log(`Logged in as ${client.user.tag}!`);
 | 
					    console.log(`Logged in as ${client.user.tag}!`);
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					process.on('SIGINT', function() {
 | 
				
			||||||
 | 
					    console.log("Closing down...");
 | 
				
			||||||
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
let last = "";
 | 
					let last = "";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
client.on('message', msg => {
 | 
					client.on('message', msg => {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user