diff --git a/bot.js b/bot.js index 6b5a120..81df822 100644 --- a/bot.js +++ b/bot.js @@ -1,5 +1,16 @@ -const dbConnect = require('./src/db/connect'); -const r = async () => { - await dbConnect({auth: require('./src/json/auth.json'), config: {logLevel: 1}}); +const Discord = require('discord.js'); + +const auth = require('./src/json/auth.json'); +const config = require('./src/json/config.json'); + + +const flags = Discord.Intents.FLAGS; +let fl = []; Object.keys(flags).forEach(flag => fl.push(flags[flag])); // fuck new standards i'm in't'zing with all the flags. +const client = new Discord.Client({intents: fl, partials: ["CHANNEL", "REACTION", "MESSAGE"]}); + +const startBot = async () => { + client.config = config; + client.auth = auth; }; -r(); \ No newline at end of file +startBot(); +// feels like there isn't a function name to do this justice :joy: \ No newline at end of file