generated from nhcarrigan/template
fix: okay i do not think the owner check is correct
Node.js CI / Lint and Test (push) Successful in 41s
Node.js CI / Lint and Test (push) Successful in 41s
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user