mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 03:13:20 +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:
parent
bc6ca0b88b
commit
9adc6360df
@ -7,17 +7,8 @@ module.exports = {
|
|||||||
category: 'info',
|
category: 'info',
|
||||||
execute(msg, args, client, Discord, command) {
|
execute(msg, args, client, Discord, command) {
|
||||||
let message = {};
|
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) {
|
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);
|
||||||
@ -40,7 +31,7 @@ module.exports = {
|
|||||||
.setTitle(client.messages.maintenanceTitle)
|
.setTitle(client.messages.maintenanceTitle)
|
||||||
.setThumbnail("https://cdn.discordapp.com/emojis/" + client.messageEmojis["maintenance"].replace(/[^0-9]+/g, ''))
|
.setThumbnail("https://cdn.discordapp.com/emojis/" + client.messageEmojis["maintenance"].replace(/[^0-9]+/g, ''))
|
||||||
.setColor(client.config.embedColor)
|
.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, ''));
|
.setFooter('EximiaBots by Warén Media', "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, ''));
|
||||||
currentRadio.textChannel.send(cembed);
|
currentRadio.textChannel.send(cembed);
|
||||||
client.radio.delete(radio.value);
|
client.radio.delete(radio.value);
|
||||||
|
@ -31,6 +31,7 @@ module.exports = {
|
|||||||
newVolume: "Volume is now: **%volume%**",
|
newVolume: "Volume is now: **%volume%**",
|
||||||
statisticsTitle: "Statistics",
|
statisticsTitle: "Statistics",
|
||||||
maintenanceTitle: "Maintenance",
|
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!",
|
||||||
};
|
};
|
Loading…
Reference in New Issue
Block a user