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:
Christer 2020-04-05 00:52:55 +03:00
parent bc6ca0b88b
commit 9adc6360df
2 changed files with 5 additions and 13 deletions

View File

@ -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);

View File

@ -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!",
};