diff --git a/src/client/events/SIGINT.js b/src/client/events/SIGINT.js index 632ab17..59495c7 100644 --- a/src/client/events/SIGINT.js +++ b/src/client/events/SIGINT.js @@ -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(