Add check to make sure response is under 2000 characters

master
Chloe Fontenot 🏳️‍⚧️ 2023-04-04 16:28:53 +07:00
parent 81e1b562e8
commit 2568a72651
1 changed files with 1 additions and 1 deletions

@ -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 }});