mirror of
https://github.com/arthur-pbty/gestion-perso.git
synced 2026-06-12 08:14:35 +02:00
add commands and events
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
const { Client, IntentsBitField, Collection } = require('discord.js')
|
||||
const loadEvents = require("./loadEvents");
|
||||
const loadCommands = require("./loadCommands");
|
||||
|
||||
module.exports = function run(token) {
|
||||
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(token);
|
||||
}
|
||||
Reference in New Issue
Block a user