From 12be399f320fa5877d09b813d82f7932dd58bcf1 Mon Sep 17 00:00:00 2001 From: Joonas Date: Sat, 11 Feb 2023 14:52:39 +0200 Subject: [PATCH] some answers can have \n --- commands/quora.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/quora.js b/commands/quora.js index 3f2295f..f78b1d9 100644 --- a/commands/quora.js +++ b/commands/quora.js @@ -24,7 +24,7 @@ const command = { await client.say( msg.channelName, - `${msg.displayName}, ${str.substring(0, 450)}` + `${msg.displayName}, ${str.replaceAll("\n", "").substring(0, 450)}` ); }, };