From e83b263ee0e955a735ecf4e0fdce212ad8bc009d Mon Sep 17 00:00:00 2001 From: Caleb Fontenot Date: Tue, 4 Apr 2023 21:18:51 -0500 Subject: [PATCH] Added /drawtriangle command --- commands/drawTriangle.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/drawTriangle.ts b/commands/drawTriangle.ts index a7b10b2..9bc2252 100644 --- a/commands/drawTriangle.ts +++ b/commands/drawTriangle.ts @@ -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"); },