Updated SIGINT.js

This commit is contained in:
Christer Warén 2021-09-03 03:47:22 +03:00
parent 2e5f0a781a
commit 238a67c267

View File

@ -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(