From faff35fa90de6903ffd58ef45ac1bf657021aad5 Mon Sep 17 00:00:00 2001 From: Wizzard Date: Thu, 14 Mar 2024 02:22:26 -0400 Subject: [PATCH] Fix random color from crashing --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index d161ddb..280f64c 100644 --- a/main.js +++ b/main.js @@ -136,7 +136,7 @@ async function checkPriceContinuously() { console.log(`Current Price: ${priceHistory.currentPrice}`); - const randomColor = Math.floor(Math.random() * 16777215).toString(16); + const randomColor = Math.floor(Math.random() * 16777215).toString(16).padStart(6, '0'); const embed = new EmbedBuilder() .setColor(`#${randomColor}`)