diff --git a/index.js b/index.js index f417e9d..cb725f3 100644 --- a/index.js +++ b/index.js @@ -15,6 +15,20 @@ var lanyardData = undefined var discData = null +var thumborInstances = [ + "https://thumbor-production-0e82.up.railway.app/", + "https://enormous-book-production.up.railway.app/", + "https://unusual-back-production.up.railway.app/", + "https://axiomatic-hair-production.up.railway.app/", +] + +var thumbCount = 0 + +function getThumbor() { + thumbCount += 1 + return thumborInstances[thumbCount % thumborInstances.length] + "unsafe" +} + const activityImages = { "ULTRAKILL": "https://fs.violets-purgatory.dev/ULTRAKILL/etc/DiscordIcon.webp" } @@ -71,7 +85,7 @@ function pageUpdate() { addedHTML += "

" if (status.emoji) { if (status.emoji.id) { - addedHTML += ` ` + addedHTML += ` ` } else { addedHTML += status.emoji.name } @@ -158,7 +172,7 @@ function pageUpdate() { if (activity.type == 2) { addedHTML += `

- +

Listening to ${activity.name}
Song: ${activity.details || " "} @@ -177,7 +191,7 @@ function pageUpdate() { addedHTML += `

- +

Playing ${activity.name}
${activity.details || activity.assets.large_text || " "} @@ -224,6 +238,7 @@ function pageUpdate() { html = '\n' + html + html = html.replace("{THUMBOR}", getThumbor()) // fetch('https://github.com/Violets-puragtory/Violets-Purgatory.dev') // .then(((data) => data.text())) // .then((text) => { diff --git a/resources/mainPage.html b/resources/mainPage.html index 0f5962b..4869342 100644 --- a/resources/mainPage.html +++ b/resources/mainPage.html @@ -27,7 +27,7 @@

Violet

- +

They/Them

Developer