Basic message collection is working again

This commit is contained in:
Bradley committed 2025-06-27 22:49:09 -04:00
1 parent a247bfb35e
commit ac2dd9983e
8 files changed
+134 -12

No files matched your search

+7 -1
View File
@@ -8,7 +8,8 @@ export const client : Client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.DirectMessages
GatewayIntentBits.GuildMembers,
GatewayIntentBits.MessageContent
]
})
@@ -21,6 +22,9 @@ if (config.DB_MODE == "sqlite") {
utilities.tables.makeTables(db)
utilities.tables.makeConstraints(db)
//I really don't want this to be here.
utilities.events.messages.setupMessageCapture(client, db)
}
client.once(Events.ClientReady, () => {
@@ -58,4 +62,6 @@ client.on(Events.InteractionCreate, async (interaction: Interaction) => {
}
})
client.login(config.DISCORD_TOKEN)