Random colors
This commit is contained in:
parent
af047f4183
commit
a31038eade
4
main.js
4
main.js
|
@ -136,8 +136,10 @@ async function checkPriceContinuously() {
|
||||||
|
|
||||||
console.log(`Current Price: ${priceHistory.currentPrice}`);
|
console.log(`Current Price: ${priceHistory.currentPrice}`);
|
||||||
|
|
||||||
|
const randomColor = Math.floor(Math.random() * 16777215).toString(16);
|
||||||
|
|
||||||
const embed = new EmbedBuilder()
|
const embed = new EmbedBuilder()
|
||||||
.setColor(0x0099ff)
|
.setColor(`#${randomColor}`)
|
||||||
.setThumbnail('https://solana.com/src/img/branding/solanaLogoMark.png')
|
.setThumbnail('https://solana.com/src/img/branding/solanaLogoMark.png')
|
||||||
.setTitle('Solana (SOL) Price Update')
|
.setTitle('Solana (SOL) Price Update')
|
||||||
.setDescription(`**Current Price: \`$${priceHistory.currentPrice}\`**`)
|
.setDescription(`**Current Price: \`$${priceHistory.currentPrice}\`**`)
|
||||||
|
|
Loading…
Reference in New Issue