mirror of
				https://github.com/warengroup/eximiabots-radiox.git
				synced 2025-11-04 05:49:31 +00:00 
			
		
		
		
	Updated maintenance command
This commit is contained in:
		@@ -10,6 +10,14 @@ module.exports = {
 | 
			
		||||
 | 
			
		||||
        if(!client.funcs.isDev(client.config.devId, interaction.user.id)) return interaction.reply(client.messageEmojis["error"] + client.messages.notAllowed);
 | 
			
		||||
 | 
			
		||||
        if(client.config.version.includes("-dev")){
 | 
			
		||||
            interaction.reply({
 | 
			
		||||
                content: "Maintenance Initiated",
 | 
			
		||||
                ephemeral: true
 | 
			
		||||
            });
 | 
			
		||||
 | 
			
		||||
            process.emit('SIGINT');
 | 
			
		||||
        } else {
 | 
			
		||||
            if(!client.stations) {
 | 
			
		||||
                message.errorToGetPlaylist = client.messages.errorToGetPlaylist.replace("%client.config.supportGuild%", client.config.supportGuild);
 | 
			
		||||
                return interaction.reply(client.messageEmojis["error"] + message.errorToGetPlaylist);
 | 
			
		||||
@@ -49,4 +57,6 @@ module.exports = {
 | 
			
		||||
                ephemeral: true
 | 
			
		||||
            });
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
};
 | 
			
		||||
		Reference in New Issue
	
	Block a user