Display what you’re currently listening to on Discord!
This extension allows you to display your currently listening song on your Discord Presence. It can also display album cover by searching through the Discogs database or uploading it to an anonymous Imgur album.
Current Features
Discogs Integration
You can use the Discogs API to search for album arts that can be embedded on the discord presence.
Imgur Integration
Alternatively, you can also use the Imgur API to upload album art to an anonymous album which will then be used to display album art on the discord presence.
I am the programmer of rooExtend that bundles multiple Roon extensions. What exactly is the Use Case Oyou are interested in?
Album art is normally automatically delivered by Roon after identifying an album.
I like to understand which scenarios your proposal shall cover in detail.
The plugin is to allow Roon users who are using the chatting app Discord to display the song that they are currently listening to on their user activity status. Much like the native Spotify integration on Discord that displays “Listening to Spotify” and the song details whenever a user is listening on the streaming platform.
For the album art, yes Roon does delivery the image. However, it cannot be displayed onto the image element on the activity status until it has been put somewhere that everyone else can see (e.g. uploading it onto an image hosting service and retrieving the image URL).
I have tried turning the image buffer into base64 encoding and trying to display it that way. Unfortunately, there is a character limit on the image field itself so that option is canned.
The downside of this plugin that I forgot to add to the original post - this script has to be ran on the same device that the Discord app is running. Because it uses Discord RPC that directly communicates with the chat app itself to update the user status.
From what I can tell, you can’t actually upload the image to Discord itself through the RPC. That’s why I had the Discogs and Imgur integration for the album covers.
This will start the extension, which will then show up on Roon’s extension page.
After that, enable the extension and make sure to change the settings for the extension to meet your needs!
1.2 Update
On this update, there are some performance improvements and you won’t have to clone the repository and run it locally anymore! You can simply use the “npx” command with NodeJS.
npx jtpox/discord-presence-roon
Just do note that if you’re running the extension for the first time, a config.json will be generated by Roon on the current working directory on your terminal after you enable it.
To use the same settings as the previous time, just make sure to set the current working directory that config.json is in before running the command.
Im not as technically knowledgeable as you are, but i have the script running and discord isnt picking up what is currently being played. Any tips or ideas would be much appreciated!
I have both discord and the script running at the same time, for clarity’s sake what do you mean by the same instance? Also what roon zone specifically should i add, not sure if its included or not, sorry if i sound inept
Got it all working! Thank you so much for the help!! When using this some of the songs dont show the album cover in discord, i have my discogs account linked, would imgur help?