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 _moCache = ora ( "Caching Monitors..." ) . start ( ) ;
await require ( './cache/monit' ) ( client ) ;
ora _moCache . stop ( ) ; ora _moCache . clear ( ) ;
console . log ( ` ${ chalk . gray ( '[PROC]' ) } >> ${ chalk . blueBright ( ` Cached ` ) } ${ chalk . white ( ` ${ Object . keys ( client . misc . cache . monit ) . length } ` ) } ${ chalk . blueBright ( ` guilds with Monitors enabled. ` ) } ` ) ;
let ora _anCache = ora ( "Caching Animes..." ) . start ( ) ;
await require ( './cache/anime' ) ( client ) ;
ora _anCache . stop ( ) ; ora _anCache . clear ( ) ;
console . log ( ` ${ chalk . gray ( '[PROC]' ) } >> ${ chalk . blueBright ( ` Cached ` ) } ${ chalk . white ( ` ${ client . misc . cache . animeNum } ` ) } ${ chalk . blueBright ( ` animes into lookup registry. ` ) } ` ) ;
let ora _chCache = ora ( "Caching Characters..." ) . start ( ) ;
await require ( './cache/char' ) ( client ) ;
ora _chCache . stop ( ) ; ora _chCache . clear ( ) ;
console . log ( ` ${ chalk . gray ( '[PROC]' ) } >> ${ chalk . blueBright ( ` Cached ` ) } ${ chalk . white ( ` ${ client . misc . cache . charsNum } ` ) } ${ chalk . blueBright ( ` characters into lookup registry. ` ) } ${ chalk . gray ( ` ( ${ client . misc . cache . chars . size } // NN) ` ) } ` ) ;
let ora _ctCache = ora ( "Caching Chests..." ) . start ( ) ;
await require ( './cache/chest' ) ( client ) ;
ora _ctCache . stop ( ) ; ora _ctCache . clear ( ) ;
console . log ( ` ${ chalk . gray ( '[PROC]' ) } >> ${ chalk . blueBright ( ` Cached ` ) } ${ chalk . white ( ` ${ client . misc . cache . chests . enabled . length } ` ) } ${ chalk . blueBright ( "guilds that spawn chests." ) } ` ) ;
} ;