feat: add analytics, fix mcp logic
Node.js CI / Lint and Test (push) Successful in 1m39s

This commit is contained in:
2025-10-09 20:36:39 -07:00
parent c8bd129c0f
commit 5bd6e03a8d
6 changed files with 86 additions and 9 deletions
+4
View File
@@ -4,6 +4,7 @@
* @author Naomi Carrigan
*/
import { DiscordAnalytics } from "@nhcarrigan/discord-analytics";
import { Client, Events, GatewayIntentBits, Partials } from "discord.js";
import { chatInputInteractionCreate } from "./events/interactionCreate.js";
import {
@@ -24,11 +25,14 @@ const hikari = new Client({
],
});
const analytics = new DiscordAnalytics(hikari, logger);
hikari.once(Events.ClientReady, () => {
void logger.log(
"debug",
`Logged in as ${hikari.user?.username ?? "unknown"}`,
);
analytics.startCron();
});
hikari.on(Events.MessageCreate, (message) => {