Test_BOT/index.js

9 lines
330 B
JavaScript
Raw Normal View History

2022-04-21 01:35:12 +02:00
const { Client, Collection } = require('discord.js');
const dotenv = require('dotenv'); dotenv.config();
const client = new Client({ intents: 513 });
client.commands = new Collection();
['CommandUtil', 'EventUtil'].forEach(handler => { require(`./utils/handlers/${handler}`)(client) });
client.login(process.env.DISCORD_TOKEN);