mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2025-04-28 14:34:48 +00:00
18 lines
390 B
JavaScript
18 lines
390 B
JavaScript
module.exports = {
|
|
name: 'SIGINT',
|
|
execute(client) {
|
|
client.user.setStatus('dnd');
|
|
|
|
console.log("\n");
|
|
client.funcs.logger("Bot", "Closing");
|
|
console.log("\n");
|
|
|
|
client.funcs.saveRadios(client);
|
|
|
|
setInterval(() => {
|
|
if(client.radio.size == 0){
|
|
process.exit();
|
|
}
|
|
}, 500);
|
|
}
|
|
} |