diff --git a/src/index.js b/src/index.js index 8e80e1b..f997bd8 100644 --- a/src/index.js +++ b/src/index.js @@ -15,11 +15,15 @@ const timer = require("./lib/timer.js"); const bot = new Eris(config.token, { defaultImageFormat: "png", defaultImageSize: 1024, - intents: [], + intents: Object.keys(Eris.Constants.Intents).filter( + (x) => x != "guildMembers" && x != "guildPresences" + ), }); const commands = new Eris.Collection(); +const database = new sqlite3.Database(resolve(__dirname, "..", "database.db")); + function registerCommand(cmdObj) { if (cmdObj instanceof Command) { commands.set(cmdObj.name, cmdObj); @@ -41,6 +45,7 @@ global.hf = { registerCommand, events, timer, + database, }; for (const file of fs.readdirSync(resolve(__dirname, "modules"))) {