feat: track when naomi is recently active
Node.js CI / Lint and Test (push) Successful in 48s

This commit is contained in:
2025-09-02 14:14:03 -07:00
parent 994f50c174
commit 7facefccd8
4 changed files with 14 additions and 1 deletions
+4
View File
@@ -51,6 +51,7 @@ const amari: Amari = {
freeCodeCamp: null,
hackerNews: null,
},
recentlyActiveChannels: new Set<string>(),
};
amari.discord.once(Events.ClientReady, () => {
@@ -65,6 +66,9 @@ amari.discord.once(Events.ClientReady, () => {
await logger.log("debug", "Auditing guild tags.");
await cacheData(amari);
});
setInterval(() => {
amari.recentlyActiveChannels = new Set<string>();
}, 10 * 60 * 1000);
});
amari.discord.on(Events.MessageCreate, (message) => {