mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2025-07-02 03:03:37 +00:00
TypeScript Initial
This commit is contained in:
15
src/client/events/SIGINT.ts
Normal file
15
src/client/events/SIGINT.ts
Normal file
@ -0,0 +1,15 @@
|
||||
module.exports = {
|
||||
name: 'SIGINT',
|
||||
execute(client) {
|
||||
client.user.setStatus('dnd');
|
||||
|
||||
client.streamer.leave(client);
|
||||
client.radio.save(client);
|
||||
|
||||
setInterval(() => {
|
||||
if(client.radio.size == 0){
|
||||
process.exit();
|
||||
}
|
||||
}, 500);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user