feat: notify when naomi earns achievements
Node.js CI / Lint and Test (push) Successful in 48s

This commit is contained in:
2025-09-10 13:21:08 -07:00
parent bfaf757d3e
commit 996cde5e2f
6 changed files with 135 additions and 1 deletions
+4
View File
@@ -14,6 +14,7 @@ import { App } from "octokit";
import { ids } from "./config/ids.js";
import { handleMessageCreate } from "./events/handleMessageCreate.js";
import { cacheData } from "./modules/cacheData.js";
import { checkRetroAchievements } from "./modules/checkAchievements.js";
import { logMenteeJoin } from "./modules/logMenteeJoin.js";
import { logMenteeLeave } from "./modules/logMenteeLeave.js";
import {
@@ -72,6 +73,9 @@ amari.discord.once(Events.ClientReady, () => {
setInterval(() => {
amari.recentlyActiveChannels = new Set<string>();
}, 10 * 60 * 1000);
setInterval(() => {
void checkRetroAchievements(amari);
}, 10 * 60 * 1000);
});
amari.discord.on(Events.MessageCreate, (message) => {