mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 01:53:17 +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 = {
|
module.exports = {
|
||||||
name: 'ready',
|
name: 'ready',
|
||||||
@ -6,6 +7,10 @@ module.exports = {
|
|||||||
|
|
||||||
client.funcs.logger("Bot", "Ready");
|
client.funcs.logger("Bot", "Ready");
|
||||||
|
|
||||||
|
/*Datastore*/
|
||||||
|
client.funcs.logger('Datastore', 'Initialize');
|
||||||
|
client.datastore = new Datastore();
|
||||||
|
|
||||||
/*DEVELOPERS*/
|
/*DEVELOPERS*/
|
||||||
client.funcs.logger('Developers');
|
client.funcs.logger('Developers');
|
||||||
|
|
||||||
@ -70,7 +75,7 @@ module.exports = {
|
|||||||
console.log("\n");
|
console.log("\n");
|
||||||
|
|
||||||
client.funcs.logger('Guilds', 'Successfully fetched list');
|
client.funcs.logger('Guilds', 'Successfully fetched list');
|
||||||
|
|
||||||
/*STATISTICS*/
|
/*STATISTICS*/
|
||||||
client.datastore.calculateGlobal(client);
|
client.datastore.calculateGlobal(client);
|
||||||
|
|
||||||
@ -80,5 +85,10 @@ module.exports = {
|
|||||||
/*COMMANDS*/
|
/*COMMANDS*/
|
||||||
require(`../commands.js`).execute(client);
|
require(`../commands.js`).execute(client);
|
||||||
|
|
||||||
|
setTimeout(function () {
|
||||||
|
/*RESTORE RADIO*/
|
||||||
|
require(`../restoreradio.js`).execute(client, guilds);
|
||||||
|
}, 5000);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user