Added /drawtriangle command

master
Chloe Fontenot 🏳️‍⚧️ 2023-04-04 21:18:51 +07:00
parent 7aef248390
commit e83b263ee0
1 changed files with 3 additions and 3 deletions

@ -20,9 +20,6 @@ module.exports = {
if (design < 1 || design > 3) {
await interaction.reply('Invalid design choice.');
}
if (inputString.length > 1000) {
await interaction.reply('String is too big. Resultant output would be too big to send to Discord.')
}
var output;
switch (design) {
case 1:
@ -37,6 +34,9 @@ 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(codeBlock("", output));
console.log("User " + interaction.user.tag + " ran /drawtriangle");
},