mirror of
				https://github.com/warengroup/eximiabots-radiox.git
				synced 2025-11-04 03:09:32 +00:00 
			
		
		
		
	Updated SIGINT.js
This commit is contained in:
		@@ -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(
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user