Fix random color from crashing
This commit is contained in:
parent
a31038eade
commit
faff35fa90
2
main.js
2
main.js
|
@ -136,7 +136,7 @@ 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 randomColor = Math.floor(Math.random() * 16777215).toString(16).padStart(6, '0');
|
||||||
|
|
||||||
const embed = new EmbedBuilder()
|
const embed = new EmbedBuilder()
|
||||||
.setColor(`#${randomColor}`)
|
.setColor(`#${randomColor}`)
|
||||||
|
|
Loading…
Reference in New Issue