Add countChars function
This commit is contained in:
parent
102e218540
commit
fb35c28294
@ -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");
|
||||
},
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user