Advertisement
joelcedrascool

Untitled

Apr 18th, 2020
342
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. const commandFiles = fs.readdirSync('./commands').filter(file => file.endsWith('.js'));
  2.  
  3. for (const file of commandFiles) {
  4. const command = require(`./commands/${file}`);
  5. client.commands.set(command.name, command);
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement