From 5a8755953334a9cfd90f2d5879385337d837d721 Mon Sep 17 00:00:00 2001
From: Bingus_Violet "
+ var addedHTML = ""
- if (lanyardData && (lanyardData.spotify != null || lanyardData.activities[0] != undefined)) {
- addedHTML += `Discord Status: ${lanyardData.spotify || '"' + lanyardData.activities[0].state + '"' || ""}`
- }
-
- var statuses = {
- "online": {
- "text": "Online",
- "color": "rgb(100, 255, 100)"
- },
- "dnd": {
- "text": "DND",
- "color": "rgb(255, 100, 100)"
- },
- "idle": {
- "text": "Idle",
- "color": "rgb(255, 255, 75)"
- },
- "offline": {
- "text": "Offline",
- "color": "rgb(125, 125, 125)"
+ if (lanyardData) {
+ for (let index = 0; index < lanyardData.activities.length; index++) {
+ const activity = lanyardData.activities[index];
+ console.log(activity)
+ if (activity.type == 2) {
+ addedHTML += ` Listening to on ${activity.name}: ${activity.details} (by ${activity.state}) "${lanyardData.activities[0].state}" - ${lanyardData.discord_user.display_name} ${new Date(Date.now()).getFullYear()} Playing: ${activity.name} ${statusData.text}
${statusData.text}`
- addedHTML += ``
+ var statuses = {
+ "online": {
+ "text": "Online",
+ "color": "rgb(100, 255, 100)"
+ },
+ "dnd": {
+ "text": "DND",
+ "color": "rgb(255, 100, 100)"
+ },
+ "idle": {
+ "text": "Idle",
+ "color": "rgb(255, 255, 75)"
+ },
+ "offline": {
+ "text": "Offline",
+ "color": "rgb(125, 125, 125)"
+ }
+ }
+ var statusData = statuses[lanyardData.discord_status]
+
+ addedHTML += `
Game & web developer
Warning: Not all services are up. Check hosting for more info.
Fediverse: Fediverse: @Bingus_Violet@tech.lgbt
Ko-Fi: bingus_violet - Please - donate!
+ donate! --> {LANYARD}