Improved sync logic, show more statistics, bug fixes

This commit is contained in:
James Shiffer
2023-10-08 13:48:41 -07:00
parent 68b94e0642
commit 657afe4755
7 changed files with 164 additions and 62 deletions

View File

@@ -4,7 +4,7 @@
*/
import { Client, Events, GatewayIntentBits, MessageReaction, PartialMessageReaction, Partials, User } from 'discord.js';
import { db, openDb, reactionEmojis, recordReaction } from './util';
import { db, openDb, reactionEmojis, recordReaction, sync } from './util';
const client = new Client({
intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.GuildMessageReactions],
@@ -57,6 +57,7 @@ async function startup() {
console.log("[db] Ready.");
console.log("[bot] Logging in...");
await client.login(process.env.TOKEN);
await sync(client.guilds);
}
startup();