mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2025-04-19 07:24:48 +00:00
15 lines
314 B
TypeScript
15 lines
314 B
TypeScript
import RadioClient from "../../Client";
|
|
|
|
export default function SIGINT(client: RadioClient) {
|
|
client.user?.setStatus('dnd');
|
|
|
|
client.streamer?.leave(client);
|
|
client.radio?.save(client);
|
|
|
|
setInterval(() => {
|
|
if(client.radio?.size == 0){
|
|
process.exit();
|
|
}
|
|
}, 500);
|
|
}
|