Skip to content

Commit

Permalink
feat(PlanetXO): add player support (#9125)
Browse files Browse the repository at this point in the history
Added Support for PXO Player Screen

---------

Signed-off-by: Kieranl29 <59117519+DJKieranl29@users.noreply.github.com>
Co-authored-by: Daniel Lau <32113157+theusaf@users.noreply.github.com>
  • Loading branch information
DJKieranl29 and theusaf authored Jan 8, 2025
1 parent b94dcff commit 59b53c3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions websites/P/PlanetXO/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"api.planetxo.uk",
"staff.planetxo.uk"
],
"version": "1.0.4",
"version": "1.0.5",
"logo": "https://cdn.rcd.gg/PreMiD/websites/P/PlanetXO/assets/logo.png",
"thumbnail": "https://cdn.rcd.gg/PreMiD/websites/P/PlanetXO/assets/thumbnail.jpg",
"color": "#8c52ff",
Expand All @@ -37,4 +37,4 @@
"regulated",
"kaneproductions"
]
}
}
10 changes: 10 additions & 0 deletions websites/P/PlanetXO/presence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,16 @@ presence.on("UpdateData", async () => {
];
break;
}
case "https://planetxo.uk/player": {
presenceData.details = "Viewing Player";
presenceData.buttons = [
{
label: "Listen Along!",
url: "https://planetxo.uk/player",
},
];
break;
}
case "https://planetxo.uk/panel": {
presenceData.details = "Viewing PlanetXO Panel";
presenceData.buttons = [
Expand Down

0 comments on commit 59b53c3

Please sign in to comment.