mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 05:53:18 +00:00
Updated maintenance command
This commit is contained in:
parent
3609e6af10
commit
1e24e89568
@ -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.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) {
|
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);
|
||||||
return interaction.reply(client.messageEmojis["error"] + message.errorToGetPlaylist);
|
return interaction.reply(client.messageEmojis["error"] + message.errorToGetPlaylist);
|
||||||
@ -49,4 +57,6 @@ module.exports = {
|
|||||||
ephemeral: true
|
ephemeral: true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
};
|
};
|
Loading…
Reference in New Issue
Block a user