From 2568a726518b6bdfca7c53f224a9fb6bea4d4c42 Mon Sep 17 00:00:00 2001 From: Caleb Fontenot Date: Tue, 4 Apr 2023 16:28:53 -0500 Subject: [PATCH] Add check to make sure response is under 2000 characters --- main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.ts b/main.ts index af348a9..8f2e474 100644 --- a/main.ts +++ b/main.ts @@ -102,7 +102,7 @@ function replyMessage(message, correctedMessage, abbrsUsed) { plural = abbrsUsed + " acronyms" } if (stringLength > 2000) { - replyString = "Sorry, I detected " + plural + "but the resultant response was " + stringLength + " characters long, and Discord only allows a maximum of 2000." + replyString = "Sorry, I detected " + plural + ", but the resultant response was " + stringLength + " characters long, and Discord only allows a maximum of 2000." } message.reply({content: replyString, allowedMentions: { repliedUser: false }});