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 = { 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);
} }
} }