mirror of
https://github.com/arthur-pbty/bot-discord-coins.git
synced 2026-06-03 15:07:20 +02:00
20 lines
734 B
JavaScript
20 lines
734 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");
|
|
var loggT = require("./loggerT.js");
|
|
var loggE = require("./loggerE.js");
|
|
|
|
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);
|
|
loggT(`Events loaded`);
|
|
loggT(`Commands loaded`);
|
|
|
|
client.login(process.env.TOKEN);
|