Add countChars function

This commit is contained in:
Chloe Fontenot 🏳️‍⚧️ 2023-04-04 17:46:27 -05:00
parent 7946a6e925
commit 102e218540

View File

@ -24,7 +24,9 @@ module.exports = {
const messagefromId = await client.channels.cache.get(interaction.channel.id).messages.fetch(messageId);
inputString = messagefromId.content;
}
if (inputString.length > 1000) {
inputString = inputString.length + "characters long";
}
await interaction.reply("Input: `" + inputString + "`\n" + "Output: " + codeBlock("", countChars(inputString)));
console.log("User " + interaction.user.tag + " ran /count_chars");
},