From 238a67c2672d48756084b501deed24c865844e1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Fri, 3 Sep 2021 03:47:22 +0300 Subject: [PATCH] Updated SIGINT.js --- src/client/events/SIGINT.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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(