skeleton the bot!

v2
Kit Kasune 2 years ago
parent 762bdc17bd
commit 8018ff8dd9
  1. 19
      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();
startBot();
// feels like there isn't a function name to do this justice :joy:
Loading…
Cancel
Save