From a31038eaded28d1c86179bb13ef19d43faa562a1 Mon Sep 17 00:00:00 2001 From: Wizzard Date: Thu, 14 Mar 2024 00:52:55 -0400 Subject: [PATCH] Random colors --- main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index 4c947bd..d161ddb 100644 --- a/main.js +++ b/main.js @@ -136,8 +136,10 @@ async function checkPriceContinuously() { console.log(`Current Price: ${priceHistory.currentPrice}`); + const randomColor = Math.floor(Math.random() * 16777215).toString(16); + const embed = new EmbedBuilder() - .setColor(0x0099ff) + .setColor(`#${randomColor}`) .setThumbnail('https://solana.com/src/img/branding/solanaLogoMark.png') .setTitle('Solana (SOL) Price Update') .setDescription(`**Current Price: \`$${priceHistory.currentPrice}\`**`)