fix: better exclusion for match.note
Node.js CI / Lint and Test (push) Failing after 39s

This commit is contained in:
2025-08-22 13:52:28 -07:00
parent dc317abfff
commit e4386410fc
+2 -2
View File
@@ -37,9 +37,9 @@ export const processMessage = async(message: Message): Promise<void> => {
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: [