Improved sync logic, show more statistics, bug fixes
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user