From 972ca2d70c365b1a9796ca4205cdc18b674714af Mon Sep 17 00:00:00 2001 From: Caleb Fontenot Date: Wed, 5 Apr 2023 00:05:31 -0500 Subject: [PATCH] Added /drawtriangle command --- commands/drawTriangle.ts | 1 + main.ts | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/commands/drawTriangle.ts b/commands/drawTriangle.ts index 2409aaf..cf31182 100644 --- a/commands/drawTriangle.ts +++ b/commands/drawTriangle.ts @@ -36,6 +36,7 @@ module.exports = { output = design4(inputString); } console.log(codeBlock("", output)); + writeFile(); var testLength = "\n" + 'output length was ' + (output.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 + testLength.length) + " characters.)"); diff --git a/main.ts b/main.ts index ed291b0..673bf76 100644 --- a/main.ts +++ b/main.ts @@ -213,4 +213,8 @@ function checkInsult(message) { } } } +} + +function writeFile() { + console.log("Write file was called!"); } \ No newline at end of file