Merge branch 'master' of ssh://gitea.calebfontenot.com:25566/CCF_100/NoMoreAcronyms

master
Chloe Fontenot 🏳️‍⚧️ 2023-04-04 17:50:06 +07:00
commit 2ebb2ea4f1
1 changed files with 6 additions and 2 deletions

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