You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.9 KiB
31 lines
1.9 KiB
const ora = require('ora');
|
|
const chalk = require('chalk');
|
|
|
|
module.exports = async (client) => {
|
|
console.log('');
|
|
let ora_arCache = ora("Caching ARs...").start();
|
|
await require('./cache/ar')(client);
|
|
ora_arCache.stop(); ora_arCache.clear();
|
|
console.log(`${chalk.gray('[PROC]')} >> ${chalk.blueBright(`Cached`)} ${chalk.white(`${client.misc.cache.ar.size}`)} ${chalk.blueBright(`guilds with auto responses.`)}`);
|
|
|
|
let ora_blCache = ora("Caching Blacklists...").start();
|
|
await require('./cache/bl')(client);
|
|
ora_blCache.stop(); ora_blCache.clear();
|
|
console.log(`${chalk.gray('[PROC]')} >> ${chalk.blueBright(`Cached`)} ${chalk.white(`${client.misc.cache.bl.guild.length}`)} ${chalk.blueBright(`guild blacklists`)}`);
|
|
console.log(`${chalk.gray('[PROC]')} >> ${chalk.blueBright(`Cached`)} ${chalk.white(`${client.misc.cache.bl.user.length}`)} ${chalk.blueBright(`user blacklists`)}`);
|
|
|
|
let ora_lxpCache = ora("Caching Local XPs...").start();
|
|
await require('./cache/lxp')(client);
|
|
ora_lxpCache.stop(); ora_lxpCache.clear();
|
|
console.log(`${chalk.gray('[PROC]')} >> ${chalk.blueBright(`Cached`)} ${chalk.white(`${client.misc.cache.lxp.enabled.length}`)} ${chalk.blueBright(`guilds with XP enabled.`)}`);
|
|
|
|
let ora_lrCache = ora("Caching Level Roles...").start();
|
|
await require('./cache/lr')(client);
|
|
ora_lrCache.stop(); ora_lrCache.clear();
|
|
console.log(`${chalk.gray('[PROC]')} >> ${chalk.blueBright(`Cached`)} ${chalk.white(`${client.misc.cache.lxp.hasLevelRoles.length}`)} ${chalk.blueBright(`guilds with Level Roles enabled.`)}`);
|
|
|
|
let ora_mCache = ora("Caching Mutes...").start();
|
|
await require('./cache/mute')(client);
|
|
ora_mCache.stop(); ora_mCache.clear();
|
|
console.log(`${chalk.gray('[PROC]')} >> ${chalk.blueBright(`Cached`)} ${chalk.white(`${client.misc.cache.mute.size}`)} ${chalk.blueBright(`mutes`)}`);
|
|
}; |