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

master
Chloe Fontenot 🏳️‍⚧️ 2023-04-04 21:23:29 +07:00
commit 273cf65e4d
1 changed files with 4 additions and 1 deletions

@ -19,6 +19,7 @@ module.exports = {
var design = parseInt(interaction.options.getString('design'));
if (design < 1 || design > 3) {
await interaction.reply('Invalid design choice.');
return;
}
var output;
switch (design) {
@ -35,9 +36,11 @@ module.exports = {
}
console.log(codeBlock("", output));
if (output.length > 2000) {
await interaction.reply('String is too big. Resultant output would be too big to send to Discord.')
await interaction.reply('Error: String is too big. Resultant output would be too big to send to Discord. (the output length was ' + output.length + " characters.");
return;
}
await interaction.reply(codeBlock("", output));
await interaction.reply('output length was ' + output.length + " characters.");
console.log("User " + interaction.user.tag + " ran /drawtriangle");
},
};