text: const { readdirSync } = require("fs")
  
  module.exports = (bot) => {
      const load = dirs => {
          const commands = readdirSync(`./commands/${dirs}/`).filter(d => d.endsWith('.js'));
          for (let file of commands) {
              let pull = require(`../commands/${dirs}/${file}`);
              bot.commands.set(pull.config.name, pull);
              if (pull.config.aliases) pull.config.aliases.forEach(a => bot.aliases.set(a, pull.config.name));
            };
          };
          ["economy", "backup", "emojis", "fun", "nsfw", "ticket", "image", "info", "moderation", "music", "owner", "games", "phone", "giveaway"].forEach(x => load(x));
  }; 
  