bot.js
// aux function to get all guilds every day
aux function to get all guilds every day
aux function to get all guilds every day
async function logTotalGuildsDaily() {
    let scheduledMessage = new cron('0 0 * * *', async () => {
        let allguilds = await utility_functions.fetchValuesAndConcatValues(client, 'guilds.cache');
        logging.logger.info("Running in " + allguilds.length + " guilds");
    }, {
        scheduled: true
    });
    scheduledMessage.start();
}
async function logTotalGuildsDaily ( ) { let scheduledMessage = new cron ( '0 0 * * *' , async ( ) => { let allguilds = await utility_functions . fetchValuesAndConcatValues ( client , 'guilds.cache' ) ; logging . logger . info ( "Running in " + allguilds . length + " guilds" ) ; } , { scheduled : true } ) ; scheduledMessage . start ( ) ; }
aux function to get all guilds every day
aux function to get all guilds every day