title: Running multiple folders for commands
body: <p>So Im pretty new to JS and Id like to have multiple folders for different commands. I only have one file for commands called &quot;befehle&quot;. This is the current command handler for me.</p>
  <pre><code>const { readdirSync } = require(&quot;fs&quot;)
  
  const ascii = require(&quot;ascii-table&quot;)
  
  const table = new ascii().setHeading(&quot;Command&quot;, &quot;Load Status&quot;);
  
  module.exports = (client) =&gt; {
          const commands = readdirSync(`./befehle/`).filter(f =&gt; f.endsWith(&quot;.js&quot;));
  
      for (let file of commands) {
          let pull = require(`../befehle/${file}`);
  
          if (pull.name) {
              client.commands.set(pull.name, pull);
              table.addRow(file, &quot;✔&quot;)
          } else {
              table.addRow(file, '❌ Not working');
              continue;
          }
  
          if (pull.aliases &amp;&amp; Array.isArray(pull.aliases))
          pull.aliases.forEach(alias =&gt; client.aliases.set(alias, pull.name));
      }
  
  console.log(table.toString())
  </code></pre>
  <p>}</p>
  <p>I really have no idea how to have multiple folders, can anyone take a look please?</p>