Files
bot-discord-coins/main.js
T

15 lines
620 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)});
const color = require('colors')
client.events = new Collection();
client.commands = new Collection();
client.config = require("./config.json");
console.log(`${loadEvents(client, '..\\events')} events loaded`.grey);
console.log(`${loadCommands(client, '..\\commands')} commands loaded`.grey);
client.login(process.env.TOKEN);