|
|
|
@ -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");
|
|
|
|
|
},
|
|
|
|
|