Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const { Client, Collection, GatewayIntentBits } = require('discord.js');
- require('dotenv/config');
- const fs = require('fs');
- const client = new Client({ intents: 32767});
- client.commands = new Collection();
- client.commandArray = [];
- const functionFolders = fs.readdirSync('./functions');
- for (const folder of functionFolders) {
- const functionFiles = fs
- .readdirSync('./functions${folder}')
- .filter((file) => file.endswith(".js"));
- for (const file of functionFiles) require('./funtions/${folder}/${file')(client);
- }
- client.on('ready', () => {
- console.log('Firy.exe is back on')
- })
- client.on('messageCreate', message => {
- if (message.content === 'Firy.exe') {
- message.reply('Thats certainly my name!')
- }
- })
- client.login(process.env.Token)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement