From 2e9cb83e230bc968957d49f58fb6cccfd844a0a8 Mon Sep 17 00:00:00 2001 From: Caleb Fontenot Date: Tue, 4 Apr 2023 21:32:49 -0500 Subject: [PATCH] Added /drawtriangle command --- commands/drawTriangle.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/drawTriangle.ts b/commands/drawTriangle.ts index db546d5..3ee4d1e 100644 --- a/commands/drawTriangle.ts +++ b/commands/drawTriangle.ts @@ -35,7 +35,7 @@ module.exports = { } console.log(codeBlock("", output)); - var testLength = "\n" + 'output length was ' + output.length + " characters."; + var testLength = "\n" + 'output length was ' + (output.length + testLength.length) + " characters."; if (output.length + testLength.length > 2000) { 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;