mirror of
				https://github.com/warengroup/eximiabots-radiox.git
				synced 2025-10-31 15:41:37 +00:00 
			
		
		
		
	Removed unnecessary message and added new sendedMaintenanceMessage which is sended to guild that listen to radio when bot is going to be under maintenance.
This commit is contained in:
		| @@ -7,17 +7,8 @@ module.exports = { | ||||
|     category: 'info', | ||||
|     execute(msg, args, client, Discord, command) { | ||||
|         let message = {}; | ||||
|         /* | ||||
|         const embed = new Discord.MessageEmbed() | ||||
|             .setTitle(client.messages.maintenanceTitle) | ||||
|             .setThumbnail("https://cdn.discordapp.com/emojis/" + client.messageEmojis["maintenance"].replace(/[^0-9]+/g, '')) | ||||
|             .setColor(client.config.embedColor) | ||||
|             .setDescription(client.messages.maintenanceDescription) | ||||
|             .setFooter('EximiaBots by Warén Media', "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, '')); | ||||
|         return msg.channel.send(embed); | ||||
|         */ | ||||
|  | ||||
|         if(!client.funcs.isDev(client.config.devId, msg.author.id)) return msg.channel.send(client.messageEmojis["error"] + "You are not allowed to do that!"); | ||||
|         if(!client.funcs.isDev(client.config.devId, msg.author.id)) return msg.channel.send(client.messageEmojis["error"] + client.messages.notAllowed); | ||||
|  | ||||
|         if(!client.stations) { | ||||
|             message.errorToGetPlaylist = client.messages.errorToGetPlaylist.replace("%client.config.supportGuild%", client.config.supportGuild); | ||||
| @@ -40,7 +31,7 @@ module.exports = { | ||||
|                     .setTitle(client.messages.maintenanceTitle) | ||||
|                     .setThumbnail("https://cdn.discordapp.com/emojis/" + client.messageEmojis["maintenance"].replace(/[^0-9]+/g, '')) | ||||
|                     .setColor(client.config.embedColor) | ||||
|                     .setDescription("There is ongoing maintenance") | ||||
|                     .setDescription(client.messages.sendedMaintenanceMessage) | ||||
|                     .setFooter('EximiaBots by Warén Media', "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, '')); | ||||
|                 currentRadio.textChannel.send(cembed); | ||||
|                 client.radio.delete(radio.value); | ||||
|   | ||||
| @@ -31,6 +31,7 @@ module.exports = { | ||||
|     newVolume: "Volume is now: **%volume%**", | ||||
|     statisticsTitle: "Statistics", | ||||
|     maintenanceTitle: "Maintenance", | ||||
|     maintenanceDescription: "This command is not ready to be used by anyone.", | ||||
|     errorToGetPlaylist: "You can't use this bot because it has no playlist available. Check more information in our Discord support server %client.config.supportGuild% !" | ||||
|     errorToGetPlaylist: "You can't use this bot because it has no playlist available. Check more information in our Discord support server %client.config.supportGuild% !", | ||||
|     notAllowed: "You are not allowed to do that!", | ||||
|     sendedMaintenanceMessage: "This bot is going to be under maintenance!", | ||||
| }; | ||||
		Reference in New Issue
	
	Block a user
	 Christer
					Christer