mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 05:53:18 +00:00
Update ready event
This commit is contained in:
parent
3d066435b4
commit
fcf6f15be9
@ -1,4 +1,6 @@
|
||||
import Datastore from "../classes/Datastore.js";
|
||||
import Radio from "../classes/Radio.js";
|
||||
import Streamer from "../classes/Streamer.js";
|
||||
const _importDynamic = new Function('modulePath', 'return import(modulePath)');
|
||||
const fetch = (...args) => _importDynamic('node-fetch').then(({default: fetch}) => fetch(...args));
|
||||
|
||||
@ -69,6 +71,12 @@ module.exports = {
|
||||
}
|
||||
}, 3600000);
|
||||
|
||||
client.streamer = new Streamer();
|
||||
|
||||
if(client.stations){
|
||||
await client.streamer.init(client);
|
||||
}
|
||||
|
||||
if(!client.stations) {
|
||||
client.user.setStatus('dnd');
|
||||
}
|
||||
@ -100,9 +108,11 @@ module.exports = {
|
||||
}, 5000);
|
||||
|
||||
setTimeout(function () {
|
||||
if(client.stations) {
|
||||
/*MAINTENANCE MODE*/
|
||||
client.funcs.logger("Maintenance Mode", "Disabled");
|
||||
client.config.maintenance = false;
|
||||
}
|
||||
}, 10000);
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user