Add countChars function

This commit is contained in:
Chloe Fontenot 🏳️‍⚧️ 2023-04-04 16:17:43 -05:00
parent 4745cc37e2
commit 38cd5e8b02

View File

@ -11,7 +11,7 @@ module.exports = {
),
async execute(interaction) {
var inputString = interaction.options.getString('string');
await interaction.reply("Output: " + codeBlock("", countChars(inputString)));
await interaction.reply("Input: `" inputString + "`\n" + "Output: " + codeBlock("", countChars(inputString)));
console.log("User " + interaction.user.tag + " ran /count_chars");
},
};