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
+5
View File
@@ -4,6 +4,7 @@
* @author Naomi Carrigan
*/
import { ids } from "../config/ids.js";
import { respondToMention } from "../modules/respondToMention.js";
import { updateMentorshipThread } from "../modules/updateMentorshipThread.js";
import type { Amari } from "../interfaces/amari.js";
@@ -22,6 +23,10 @@ export const handleMessageCreate = async(
if (message.author.bot || message.system) {
return;
}
if (message.author.id === ids.users.naomi
&& !amari.recentlyActiveChannels.has(message.channel.id)) {
amari.recentlyActiveChannels.add(message.channel.id);
}
await updateMentorshipThread(amari, message);
await respondToMention(amari, message);
};