Updated ready.js

This commit is contained in:
Christer Warén 2021-09-03 01:23:17 +03:00
parent 329986be53
commit a8fc38ffca

View File

@ -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);
}
}