Files
gestion/main.js
T

16 lines
456 B
JavaScript

require('dotenv').config();
const { Client, IntentsBitField, Collection } = require("discord.js");
const loadCommands = require("./loaders/loadCommands");
const loadEvents = require("./loaders/loadEvents");
const client = new Client({intents: new IntentsBitField(3276799)});
client.events = new Collection();
client.commands = new Collection();
(async () => {
loadCommands(client);
loadEvents(client);
await client.login(process.env.TOKEN);
})();