add principal main

This commit is contained in:
Arthur
2024-05-26 19:53:06 +02:00
committed by GitHub
parent dd0f28b3f0
commit b1b9c3d8a9
+13
View File
@@ -0,0 +1,13 @@
require('dotenv').config();
const { Client, IntentsBitField, Collection } = require("discord.js");
const loadCommands = require("./fonctions/loadCommands");
const loadEvents = require("./fonctions/loadEvents");
const client = new Client({intents: new IntentsBitField(3276799)});
client.events = new Collection();
client.commands = new Collection();
console.log(`${loadEvents(client, '..\\events')} events loaded`);
console.log(`${loadCommands(client, '..\\commands')} commands loaded`);
client.login(process.env.TOKEN);