From b1b9c3d8a9d230bdb4cdd515d104bffea6776498 Mon Sep 17 00:00:00 2001 From: Arthur <128254439+arthur-pbty@users.noreply.github.com> Date: Sun, 26 May 2024 19:53:06 +0200 Subject: [PATCH] add principal main --- main.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 main.js diff --git a/main.js b/main.js new file mode 100644 index 0000000..f5337da --- /dev/null +++ b/main.js @@ -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); \ No newline at end of file