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) {
return;
}
const owner = await message.thread?.fetchOwner();
// We only respond in threads created by Keiko.
if (owner?.id !== "1425897287065800785") {
const starter = await message.thread?.fetchStarterMessage();
const mentionsKeiko = starter?.mentions.has("1425897287065800785", {
ignoreDirect: false,
ignoreEveryone: true,
ignoreRepliedUser: true,
ignoreRoles: true,
});
if (mentionsKeiko !== true) {
return;
}
const isNaomi = await isNaomiMessage(message);