mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-11-09 23:40:18 +00:00
Updated ready.js
This commit is contained in:
parent
329986be53
commit
a8fc38ffca
@ -1,4 +1,5 @@
|
||||
const fetch = require('node-fetch');
|
||||
import Datastore from "../datastore.js";
|
||||
import fetch from "node-fetch";
|
||||
|
||||
module.exports = {
|
||||
name: 'ready',
|
||||
@ -6,6 +7,10 @@ module.exports = {
|
||||
|
||||
client.funcs.logger("Bot", "Ready");
|
||||
|
||||
/*Datastore*/
|
||||
client.funcs.logger('Datastore', 'Initialize');
|
||||
client.datastore = new Datastore();
|
||||
|
||||
/*DEVELOPERS*/
|
||||
client.funcs.logger('Developers');
|
||||
|
||||
@ -70,7 +75,7 @@ module.exports = {
|
||||
console.log("\n");
|
||||
|
||||
client.funcs.logger('Guilds', 'Successfully fetched list');
|
||||
|
||||
|
||||
/*STATISTICS*/
|
||||
client.datastore.calculateGlobal(client);
|
||||
|
||||
@ -80,5 +85,10 @@ module.exports = {
|
||||
/*COMMANDS*/
|
||||
require(`../commands.js`).execute(client);
|
||||
|
||||
setTimeout(function () {
|
||||
/*RESTORE RADIO*/
|
||||
require(`../restoreradio.js`).execute(client, guilds);
|
||||
}, 5000);
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user