Unknown Changes

This commit is contained in:
2022-07-03 19:29:17 +02:00
parent 70f536d8a4
commit 74ce54d861
13 changed files with 355 additions and 12 deletions

View File

@@ -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);