mirror of
				https://github.com/warengroup/eximiabots-radiox.git
				synced 2025-11-04 11:29:33 +00:00 
			
		
		
		
	Add maintenance mode check in play command
This commit is contained in:
		@@ -14,6 +14,15 @@ module.exports = {
 | 
				
			|||||||
    category: "radio",
 | 
					    category: "radio",
 | 
				
			||||||
    async execute(interaction, client) {
 | 
					    async execute(interaction, client) {
 | 
				
			||||||
        let message = {};
 | 
					        let message = {};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        if(client.config.maintenance){
 | 
				
			||||||
 | 
					            interaction.reply({
 | 
				
			||||||
 | 
					                content: client.messageEmojis["error"] + client.messages.maintenance,
 | 
				
			||||||
 | 
					                ephemeral: true
 | 
				
			||||||
 | 
					            });
 | 
				
			||||||
 | 
					            return false;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if(!client.stations) {
 | 
					        if(!client.stations) {
 | 
				
			||||||
            message.errorToGetPlaylist = client.messages.errorToGetPlaylist.replace("%client.config.supportGuild%", client.config.supportGuild);
 | 
					            message.errorToGetPlaylist = client.messages.errorToGetPlaylist.replace("%client.config.supportGuild%", client.config.supportGuild);
 | 
				
			||||||
            return interaction.reply({
 | 
					            return interaction.reply({
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user