diff --git a/index.js b/index.js index 2dc87f5..3852abf 100644 --- a/index.js +++ b/index.js @@ -97,4 +97,10 @@ const init = async () => { }; }; -init(); \ No newline at end of file +process.on('SIGINT', function(){ + client.logger.info("Disconnecting...") + client.destroy(); + process.exit(); +}); + +init();