{"size": 759, "ext": "js", "max_stars_repo_path": "events/ready.js", "max_stars_repo_name": "ZeTro-dev/AlphaBot", "max_stars_repo_stars_event_min_datetime": "2021-06-17T05:27:00.000Z", "max_stars_repo_stars_event_max_datetime": "2021-06-17T05:27:00.000Z", "max_issues_repo_path": "events/ready.js", "max_issues_repo_name": "ZeTro-dev/AlphaBot", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "events/ready.js", "max_forks_repo_name": "ZeTro-dev/AlphaBot", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 44.6470588235, "max_line_length": 213, "alphanum_fraction": 0.5770750988}
const {Discord} = require('discord.js');
const { prefix} = require("../db/config.json");

module.exports = (client) => {
    let { name } = require('../package-lock.json')
    function setActivity(){
        let Gameinfo = [`${prefix}help | alpha-bot.fr`, `${prefix}help | ${client.guilds.cache.reduce((acc, guild) => acc + guild.memberCount, 0)} membres`,`${prefix}help | ${client.guilds.cache.size} serveurs`];
    
        let random = Math.floor(Math.random() * Gameinfo.length);
          
            client.user.setActivity(Gameinfo[random], {
              type: "WATCHING",
            });
        
      }setInterval(setActivity, 1000 * 60 * 0.25)
    console.log(`[ Handler ] : ${client.user.username} est prêt a l'utilisation !`)
}