feat(Reboot Radio): add activity - #11089
Conversation
Signed-off-by: N1tr0_De_Vulp3r <148155644+N1tr0-De-Vulp3r@users.noreply.github.com>
skullysmods
left a comment
There was a problem hiding this comment.
Add information for other pages when the music isn't playing
You can use Slideshows to display various pieces of information at different intervals
https://docs.premid.app/v1/guide/slideshows.html
| @@ -0,0 +1,29 @@ | |||
| { | |||
| "$schema": "https://schemas.premid.app/metadata/1.16", | |||
There was a problem hiding this comment.
| "$schema": "https://schemas.premid.app/metadata/1.16", | |
| "$schema": "https://schemas.premid.app/metadata/1.17", |
| { | ||
| "$schema": "https://schemas.premid.app/metadata/1.16", | ||
| "apiVersion": 1, | ||
| "type": 2, |
| }, | ||
| "service": "Reboot Radio", | ||
| "description": { | ||
| "en": "Show off Reboot Radio on your Discord status." |
There was a problem hiding this comment.
description should be the description of the website not the activity
| "regExp": "^https?[:][/][/]rebootradio[.]uk[/]", | ||
| "version": "1.0.0", | ||
| "logo": "https://rebootradio.uk/favicon.ico", | ||
| "thumbnail": "https://rebootradio.uk/favicon.ico", |
There was a problem hiding this comment.
Thumbnail should be a landscape promotional image or screenshot, not the logo
| "iframe": false, | ||
| "settings": [] |
There was a problem hiding this comment.
| "iframe": false, | |
| "settings": [] |
| @@ -0,0 +1,28 @@ | |||
| "use strict"; | |||
There was a problem hiding this comment.
| "use strict"; |
| const title = data.song?.track || "Unknown Song"; | ||
| const artist = data.song?.artist || "Unknown Artist"; | ||
| presence.setActivity({ | ||
| type: 2, |
| buttons: [ | ||
| { | ||
| label: "Listen Live", | ||
| url: "https://rebootradio.uk" | ||
| } | ||
| ] |
There was a problem hiding this comment.
Buttons for the home page are not allowed
There was a problem hiding this comment.
Strings are not currently used in the Activity
https://docs.premid.app/v1/guide/localization.html
🖼️ Activity asset previewI fetched these assets so you don't have to. My hobbies include embedding images and silently judging diffs. Reboot Radio (
|
| Preview | Source | URL |
|---|---|---|
| logo | https://rebootradio.uk/favicon.ico |
Beep boop — I refresh this comment on every push, so no need to scroll. 🤖
| "name": "Reboot Media Group", | ||
| "id": "1274324682027434158" | ||
| }, | ||
| "service": "Reboot Radio", |
| ], | ||
| "regExp": "^https?[:][/][/]rebootradio[.]uk[/]", | ||
| "version": "1.0.0", | ||
| "logo": "https://rebootradio.uk/favicon.ico", |
| "regExp": "^https?[:][/][/]rebootradio[.]uk[/]", | ||
| "version": "1.0.0", | ||
| "logo": "https://rebootradio.uk/favicon.ico", | ||
| "thumbnail": "https://rebootradio.uk/favicon.ico", |
| { | ||
| "$schema": "https://schemas.premid.app/metadata/1.16", | ||
| "apiVersion": 1, | ||
| "type": 2, |
| "description": { | ||
| "en": "Show off Reboot Radio on your Discord status." | ||
| }, | ||
| "url": [ |
| ], | ||
| "regExp": "^https?[:][/][/]rebootradio[.]uk[/]", | ||
| "version": "1.0.0", | ||
| "logo": "https://rebootradio.uk/favicon.ico", |
| "regExp": "^https?[:][/][/]rebootradio[.]uk[/]", | ||
| "version": "1.0.0", | ||
| "logo": "https://rebootradio.uk/favicon.ico", | ||
| "thumbnail": "https://rebootradio.uk/favicon.ico", |
| ], | ||
| "iframe": false, | ||
| "settings": [] | ||
| } No newline at end of file |
| "description": "Shown when AutoDJ is playing", | ||
| "message": "Reboot" | ||
| } | ||
| } No newline at end of file |
Description
Acknowledgements
npm run lintScreenshots
Proof showing the creation/modification is working as expected