diff --git a/client/commands/maintenance.js b/client/commands/maintenance.js index b304428..5bb7f1b 100644 --- a/client/commands/maintenance.js +++ b/client/commands/maintenance.js @@ -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); diff --git a/client/messages.js b/client/messages.js index d1d1348..104f623 100644 --- a/client/messages.js +++ b/client/messages.js @@ -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!", }; \ No newline at end of file