diff --git a/commands/countChars.ts b/commands/countChars.ts index 21799a3..4b5601d 100644 --- a/commands/countChars.ts +++ b/commands/countChars.ts @@ -25,9 +25,10 @@ module.exports = { inputString = messagefromId.content; } if (inputString.length > 1000) { - inputString = inputString.length + "characters long"; + inputString = "too long to copy"; } - await interaction.reply("Input: `" + inputString + "`\n" + "Output: " + codeBlock("", countChars(inputString))); + + await interaction.reply("Input: `" + inputString + "`\n" + "input length: " + inputString.length + " characters long" + "\n Output: " + codeBlock("", countChars(inputString))); console.log("User " + interaction.user.tag + " ran /count_chars"); }, };