From 9685bc56085c7c62ac69f4157637adfa728f550a Mon Sep 17 00:00:00 2001 From: Lea Date: Fri, 7 Apr 2023 23:31:41 +0200 Subject: [PATCH] don't say "undefined" --- bot/src/bot/commands/configuration/botctl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/src/bot/commands/configuration/botctl.ts b/bot/src/bot/commands/configuration/botctl.ts index 219f523..2ab11aa 100644 --- a/bot/src/bot/commands/configuration/botctl.ts +++ b/bot/src/bot/commands/configuration/botctl.ts @@ -322,7 +322,7 @@ export default { 'Word filter', ), embed( - `**Enabled:** ${config?.wordlistEnabled}` + (!config?.wordlistEnabled + `**Enabled:** ${!!config?.wordlistEnabled}` + (!config?.wordlistEnabled ? '' : `\n**Action:** ${config?.wordlistAction?.action ?? 'LOG'}\n` + `**Warning message:** ${config?.wordlistAction?.message}\n` +