forked from embee/woomy
Add bind to SIGINT
This commit is contained in:
parent
8058f3dced
commit
0f587bcfff
1 changed files with 7 additions and 1 deletions
6
index.js
6
index.js
|
@ -97,4 +97,10 @@ const init = async () => {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
process.on('SIGINT', function(){
|
||||||
|
client.logger.info("Disconnecting...")
|
||||||
|
client.destroy();
|
||||||
|
process.exit();
|
||||||
|
});
|
||||||
|
|
||||||
init();
|
init();
|
Loading…
Reference in a new issue