Add maintenance mode to check function

This commit is contained in:
Christer Warén 2021-09-09 18:53:24 +03:00
parent 3807ae89a0
commit 9c3748ad7c

View File

@ -2,6 +2,13 @@ module.exports = function (client, interaction, command) {
let message = {};
const radio = client.radio.get(interaction.guild.id);
const permissions = interaction.channel.permissionsFor(interaction.user);
if(client.config.maintenance){
interaction.reply({
content: client.messageEmojis["error"] + client.messages.maintenance,
ephemeral: true
});
return false;
}
if(!client.stations) {
message.errorToGetPlaylist = client.messages.errorToGetPlaylist.replace("%client.config.supportGuild%", client.config.supportGuild);
interaction.reply({