From 699edf9d119bd337ed164af05ee72ce4b5da8da1 Mon Sep 17 00:00:00 2001 From: Caleb Fontenot Date: Sat, 8 Apr 2023 22:30:40 -0500 Subject: [PATCH 1/2] Make circle more circular --- commands/drawDesign.cjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/drawDesign.cjs b/commands/drawDesign.cjs index b6281ea..d01a4d3 100644 --- a/commands/drawDesign.cjs +++ b/commands/drawDesign.cjs @@ -178,7 +178,7 @@ function design4(input) { // for vertical movement for (j = 0; j <= 2 * radius; j++) { dist = Math.sqrt( - ((i - radius) * (i - radius) * 4) + + ((i - radius) * (i - radius) * 4) + // (* 4) accounts for the offset between lines (j - radius) * (j - radius) ); //console.log(i, j, radius, dist); From 908901f88355f5004bbadfea77c06b97c78fcbbb Mon Sep 17 00:00:00 2001 From: Caleb Fontenot Date: Sat, 8 Apr 2023 22:32:44 -0500 Subject: [PATCH 2/2] Get rid of redundant console.log() --- commands/drawDesign.cjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/drawDesign.cjs b/commands/drawDesign.cjs index d01a4d3..be478bc 100644 --- a/commands/drawDesign.cjs +++ b/commands/drawDesign.cjs @@ -38,7 +38,7 @@ module.exports = { case 4: output = design4(inputString); } - console.log(codeBlock("", output)); + //console.log(codeBlock("", output)); let 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.)");