diff --git a/index.js b/index.js index 94f2a19..11d0f73 100644 --- a/index.js +++ b/index.js @@ -31,11 +31,9 @@ app.get("/", (req, res) => { const activity = lanyardData.activities[index]; console.log(activity) if (activity.type == 2) { - addedHTML += `
Listening to on ${activity.name}: ${activity.details} (by ${activity.state})
` + addedHTML += `Listening to on ${activity.name}: ${activity.details} (by ${activity.state})
` } else if (activity.type == 4) { addedHTML += `"${lanyardData.activities[0].state}" - ${lanyardData.discord_user.display_name} ${new Date(Date.now()).getFullYear()}
` - } else if (activity.type == 0) { - addedHTML += `Playing: ${activity.name}
` } } @@ -59,13 +57,14 @@ app.get("/", (req, res) => { } var statusData = statuses[lanyardData.discord_status] - addedHTML += `${statusData.text}
` addedHTML += `` console.log(lanyardData.activities) } - html = html.replace("{LANYARD}", addedHTML + "") + html = html.replace("{LANYARD_STATUS}", `${statusData.text}
`) + + html = html.replace("{LANYARD}", addedHTML) res.send(html) }) diff --git a/resources/mainPage.html b/resources/mainPage.html index 407f2b3..a6ba5c6 100644 --- a/resources/mainPage.html +++ b/resources/mainPage.html @@ -5,8 +5,7 @@ - +Pronouns: They/Them
-Gender: Non-binary
-Game & web developer
+They/Them
+Non-binary
+Game & web developer
+ {LANYARD_STATUS} +The world's worst developer
+