Updated maintenance command

This commit is contained in:
Christer Warén 2021-09-05 02:12:57 +03:00
parent 3609e6af10
commit 1e24e89568

View File

@ -10,6 +10,14 @@ module.exports = {
if(!client.funcs.isDev(client.config.devId, interaction.user.id)) return interaction.reply(client.messageEmojis["error"] + client.messages.notAllowed);
if(client.config.version.includes("-dev")){
interaction.reply({
content: "Maintenance Initiated",
ephemeral: true
});
process.emit('SIGINT');
} else {
if(!client.stations) {
message.errorToGetPlaylist = client.messages.errorToGetPlaylist.replace("%client.config.supportGuild%", client.config.supportGuild);
return interaction.reply(client.messageEmojis["error"] + message.errorToGetPlaylist);
@ -49,4 +57,6 @@ module.exports = {
ephemeral: true
});
}
}
};