diff --git a/index.js b/index.js index 8f6e988..4731d4b 100644 --- a/index.js +++ b/index.js @@ -17,6 +17,10 @@ var lanyardData = undefined var discData = null +const activityImages = { + "ULTRAKILL": "https://thumbor-production-0e82.up.railway.app/unsafe/512x512/https://fs.violets-purgatory.dev/ULTRAKILL/etc/DiscordIcon.webp" +} + var mastoData = { "lastUpdate": 0, "HTML": "" @@ -92,11 +96,28 @@ function pageUpdate() { for (let index = 0; index < lanyardData.activities.length; index++) { const activity = lanyardData.activities[index]; + var found = false + for (let index = 0; index < lanyardData.activities.length; index++) { + const act = lanyardData.activities[index] + if (act.name == activity.name) { + if (Object.keys(act).length > Object.keys(activity).length) { + found = true + } + } + } + if (found) { + continue + } + if (!debounce && activity.type != 4) { addedHTML += `