Unknown Changes
This commit is contained in:
4
index.js
4
index.js
@@ -2,6 +2,7 @@ require("dotenv").config();
|
||||
|
||||
const fs = require("fs");
|
||||
const {Client, Intents, Collection} = require("discord.js");
|
||||
const dbUtil = require("./util/db")
|
||||
|
||||
const client = new Client({intents: [
|
||||
Intents.FLAGS.GUILDS,
|
||||
@@ -29,8 +30,11 @@ for (const file of eventFiles) {
|
||||
} else {
|
||||
client.on(event.name, (...args) => event.execute(...args, commands));
|
||||
}
|
||||
|
||||
console.log(`Registered event: ${event.name}`);
|
||||
}
|
||||
|
||||
//dbUtil.initDb();
|
||||
client.login(process.env.TOKEN);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user