fix: okay i do not think the owner check is correct
Node.js CI / Lint and Test (push) Successful in 41s

This commit is contained in:
2025-10-09 15:08:10 -07:00
parent 2de490a3d7
commit 918c2982ac
+8 -3
View File
@@ -27,9 +27,14 @@ export const handleThreadMessage
if (message.author.bot) { if (message.author.bot) {
return; return;
} }
const owner = await message.thread?.fetchOwner(); const starter = await message.thread?.fetchStarterMessage();
// We only respond in threads created by Keiko. const mentionsKeiko = starter?.mentions.has("1425897287065800785", {
if (owner?.id !== "1425897287065800785") { ignoreDirect: false,
ignoreEveryone: true,
ignoreRepliedUser: true,
ignoreRoles: true,
});
if (mentionsKeiko !== true) {
return; return;
} }
const isNaomi = await isNaomiMessage(message); const isNaomi = await isNaomiMessage(message);