{"size": 1401, "ext": "js", "max_stars_repo_path": "index.js", "max_stars_repo_name": "warolfeee/botdiscordPUBLIC", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "index.js", "max_issues_repo_name": "warolfeee/botdiscordPUBLIC", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "index.js", "max_forks_repo_name": "warolfeee/botdiscordPUBLIC", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 28.5918367347, "max_line_length": 88, "alphanum_fraction": 0.533904354}
const Discord = require('discord.js');
const client = new Discord.Client();

const fs = require('fs');

client.login("token")
client.commands = new Discord.Collection();

fs.readdir('./Commandes/', (error, f) => {
    if (error) { return console.error(error); }
        let commandes = f.filter(f => f.split('.').pop() === 'js');
        if (commandes.length <= 0) { return console.log('Aucune commande trouvée !'); }

        commandes.forEach((f) => {
            let commande = require(`./Commandes/${f}`);
            console.log(`${f} commande chargée !`);
            client.commands.set(commande.help.name , commande);
        });
});

fs.readdir('./Events/', (error, f) => {
    if (error) { return console.error(error); }
        console.log(`${f.length} events chargés`);

        f.forEach((f) => {
            let events = require(`./Events/${f}`);
            let event = f.split('.')[0];
            client.on(event, events.bind(null, client));
        });
});
// ${client.guilds.size} 
   var jeuxs = [
    `discord.gg/atc`

];
  setInterval(function () {
   
   var jeux = jeuxs[Math.floor(Math.random() * jeuxs.length)];
   
    client.user.setPresence({
     game: {
       name: `discord.gg/namek is back ${client.users.size} Membre merci`,
       type: "PLAYING"
     }
   });
  }, 3525);
  
//url: "https://www.twitch.tv/warolfee" 
