From f2dab19d70a2782f0c74966030e4f7c980a89026 Mon Sep 17 00:00:00 2001 From: derpystuff <3515180-derpystuff@users.noreply.gitlab.com> Date: Mon, 23 Oct 2023 18:32:42 +0200 Subject: [PATCH] r --- commands/message/fun/bard.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/commands/message/fun/bard.js b/commands/message/fun/bard.js index 590b0b2..baa8da8 100644 --- a/commands/message/fun/bard.js +++ b/commands/message/fun/bard.js @@ -30,9 +30,7 @@ module.exports = { if(!args.text) return editOrReply(context, {embeds:[createEmbed("warning", context, `Missing Parameter (text).`)]}) let input = args.text; - - for(const p of BLOCKED_PHRASES) if(input.toLowerCase().includes(p)) return await editOrReply(context, createEmbed("error", context, "Query includes blocked phrases. This incident will be reported.")); - + let inputDisplay = args.text.replace(/\n/g, ' ') if(inputDisplay.length >= 50) inputDisplay = inputDisplay.substr(0,50) + '...'