mirror of
https://github.com/arthur-pbty/bot-discord-coins.git
synced 2026-06-03 23:36:29 +02:00
13 lines
534 B
JavaScript
13 lines
534 B
JavaScript
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); |