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 -1
View File
@@ -25,10 +25,13 @@ export const respondToMention = async(
try {
const naomi = amari.discord.users.cache.get(ids.users.naomi)
?? await amari.discord.users.fetch(ids.users.naomi);
const { mentions, content, author, url } = message;
const { mentions, content, author, url, channel } = message;
if (author.bot || author.id === ids.users.naomi) {
return;
}
if (amari.recentlyActiveChannels.has(channel.id)) {
return;
}
if (mentions.has(ids.users.naomi, {
ignoreEveryone: true,
ignoreRepliedUser: true,