mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 05:13: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 = {
|
module.exports = {
|
||||||
name: 'SIGINT',
|
name: 'SIGINT',
|
||||||
async execute(client) {
|
async execute(client) {
|
||||||
|
client.user.setStatus('dnd');
|
||||||
|
|
||||||
|
console.log("\n");
|
||||||
|
client.funcs.logger("Bot", "Closing");
|
||||||
|
console.log("\n");
|
||||||
|
|
||||||
setTimeout(async function () {
|
setTimeout(async function () {
|
||||||
let message = {};
|
let message = {};
|
||||||
|
|
||||||
@ -29,12 +35,6 @@ module.exports = {
|
|||||||
radio = currentRadios.next();
|
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);
|
const rest = new REST({ version: '9' }).setToken(token);
|
||||||
if(version.includes("-dev")){
|
if(version.includes("-dev")){
|
||||||
await rest.put(
|
await rest.put(
|
||||||
|
Loading…
Reference in New Issue
Block a user