mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 01:53:17 +00:00
Updated SIGINT.js
This commit is contained in:
parent
2e5f0a781a
commit
238a67c267
@ -5,6 +5,12 @@ const { token, version } = require('../../config.js');
|
||||
module.exports = {
|
||||
name: 'SIGINT',
|
||||
async execute(client) {
|
||||
client.user.setStatus('dnd');
|
||||
|
||||
console.log("\n");
|
||||
client.funcs.logger("Bot", "Closing");
|
||||
console.log("\n");
|
||||
|
||||
setTimeout(async function () {
|
||||
let message = {};
|
||||
|
||||
@ -29,12 +35,6 @@ module.exports = {
|
||||
radio = currentRadios.next();
|
||||
}
|
||||
|
||||
console.log("\n");
|
||||
client.funcs.logger("Bot", "Closing");
|
||||
console.log("\n");
|
||||
|
||||
client.user.setStatus('dnd');
|
||||
|
||||
const rest = new REST({ version: '9' }).setToken(token);
|
||||
if(version.includes("-dev")){
|
||||
await rest.put(
|
||||
|
Loading…
Reference in New Issue
Block a user