From e4386410fc37507ba58590c0ef0e0e3584183961 Mon Sep 17 00:00:00 2001 From: Naomi Carrigan Date: Fri, 22 Aug 2025 13:52:28 -0700 Subject: [PATCH] fix: better exclusion for match.note --- src/modules/processMessage.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/processMessage.ts b/src/modules/processMessage.ts index 8d58206..e5ce51e 100644 --- a/src/modules/processMessage.ts +++ b/src/modules/processMessage.ts @@ -37,9 +37,9 @@ 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 + : "I said so."}${match.note === null || match.note === "" || match.note === "undefined" ? "" - : `-- ${match.note}`}`; + : ` -- ${match.note}`}`; }); await message.reply({ components: [