9 lines
330 B
JavaScript
9 lines
330 B
JavaScript
|
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);
|