This commit is contained in:
VALOU3336
2024-02-14 08:24:51 +01:00
7 changed files with 80 additions and 54 deletions
+7 -5
View File
@@ -1,18 +1,20 @@
require('dotenv').config();
const { Client, IntentsBitField, Collection } = require("discord.js");
const loadCommands = require("./loaders/loadCommands")
const loadCommands = require("./loaders/loadCommands");
const loadEvents = require("./loaders/loadEvents");
const client = new Client({intents: new IntentsBitField(3276799)});
client.on('ready', () => {
console.log(`Logged in as ${client.user.tag}!`);
});
client.events = new Collection();
client.commands = new Collection();
client.snipes = new Collection();
(async () => {
await loadCommands(client);
await loadEvents(client);
loadCommands(client);
loadEvents(client);
await client.login(process.env.TOKEN);
})();
client.login(process.env.TOKEN);
})();