mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 01:13:17 +00:00
Update maintenance command
This commit is contained in:
parent
a5eec44b8e
commit
0b8fb4977c
@ -93,23 +93,30 @@ module.exports = {
|
||||
|
||||
switch(action){
|
||||
case "0":
|
||||
client.config.maintenance = true;
|
||||
process.emit('SIGINT');
|
||||
break;
|
||||
case "4":
|
||||
client.config.maintenance = true;
|
||||
client.user.setStatus('idle');
|
||||
client.funcs.saveRadios(client);
|
||||
client.user.setStatus('online');
|
||||
client.config.maintenance = false;
|
||||
break;
|
||||
case "5":
|
||||
client.config.maintenance = true;
|
||||
client.user.setStatus('idle');
|
||||
let guilds = await client.guilds.fetch();
|
||||
client.funcs.restoreRadios(client, guilds);
|
||||
client.user.setStatus('online');
|
||||
client.config.maintenance = false;
|
||||
break;
|
||||
case "6":
|
||||
client.config.maintenance = true;
|
||||
client.user.setStatus('idle');
|
||||
require(`../commands.js`).execute(client);
|
||||
client.user.setStatus('online');
|
||||
client.config.maintenance = false;
|
||||
break;
|
||||
case "7":
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user