mirror of
https://github.com/arthur-pbty/bot-discord-coins.git
synced 2026-06-18 21:38:32 +02:00
add principal main
This commit is contained in:
@@ -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);
|
||||
Reference in New Issue
Block a user