Files
gestion/main.js
T
2024-02-13 21:56:35 +01:00

15 lines
509 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.on('ready', () => {
console.log(`Logged in as ${client.user.tag}!`);
});
(async () => {
await loadCommands(client);
await loadEvents(client);
await client.login(process.env.TOKEN);
})();
client.login(process.env.TOKEN);