init base

This commit is contained in:
Tutur33
2024-02-13 23:28:33 +01:00
parent 3e79697d37
commit ab1520b104
6 changed files with 98 additions and 77 deletions
+5 -8
View File
@@ -1,15 +1,12 @@
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}!`);
});
(async () => {
await loadCommands(client);
await loadEvents(client);
loadCommands(client);
loadEvents(client);
await client.login(process.env.TOKEN);
})();
client.login(process.env.TOKEN);
})();