From 74605cc219c1551e1d496c6db490540d2e683fe2 Mon Sep 17 00:00:00 2001 From: Naomi Carrigan Date: Fri, 22 Aug 2025 13:54:46 -0700 Subject: [PATCH] fix: think the type def is wrong --- src/modules/processMessage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/processMessage.ts b/src/modules/processMessage.ts index e5ce51e..456826f 100644 --- a/src/modules/processMessage.ts +++ b/src/modules/processMessage.ts @@ -37,7 +37,7 @@ export const processMessage = async(message: Message): Promise => { const responses = matches.map((match) => { return `- You used the word \`${match.actual ?? "unknown word"}\`. This may not be inclusive language, because: ${match.reason.length > 0 ? match.reason - : "I said so."}${match.note === null || match.note === "" || match.note === "undefined" + : "I said so."}${[ null, "", undefined, "undefined", "null" ].includes(match.note) ? "" : ` -- ${match.note}`}`; });