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:
		@@ -1,7 +1,7 @@
 | 
				
			|||||||
import Discord from "discord.js";
 | 
					import Discord from "discord.js";
 | 
				
			||||||
const { REST } = require('@discordjs/rest');
 | 
					const { REST } = require('@discordjs/rest');
 | 
				
			||||||
const { Routes } = require('discord-api-types/v9');
 | 
					const { Routes } = require('discord-api-types/v9');
 | 
				
			||||||
const { token, version } = require('../config.js');
 | 
					const { token, version } = require('../../config.js');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
module.exports = {
 | 
					module.exports = {
 | 
				
			||||||
    name: 'SIGINT',
 | 
					    name: 'SIGINT',
 | 
				
			||||||
@@ -19,8 +19,8 @@ module.exports = {
 | 
				
			|||||||
                currentRadio.guild = client.datastore.getEntry(radio.value).guild;
 | 
					                currentRadio.guild = client.datastore.getEntry(radio.value).guild;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                if (currentRadio) {
 | 
					                if (currentRadio) {
 | 
				
			||||||
                    client.funcs.statisticsUpdate(client, currentRadio.guild, currentRadio);
 | 
					                    await client.funcs.statisticsUpdate(client, currentRadio.guild, currentRadio);
 | 
				
			||||||
                    client.funcs.saveState(client, currentRadio.guild, currentRadio);
 | 
					                    await client.funcs.saveState(client, currentRadio.guild, currentRadio);
 | 
				
			||||||
                    currentRadio.connection?.destroy();
 | 
					                    currentRadio.connection?.destroy();
 | 
				
			||||||
                    currentRadio.audioPlayer?.stop();
 | 
					                    currentRadio.audioPlayer?.stop();
 | 
				
			||||||
                    currentRadio.message?.delete();
 | 
					                    currentRadio.message?.delete();
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user