Run npm i followed by node index.js (The latter will be your startup command whenever you need it running).
As of right now, you’ll be required to launch it at startup yourself until I make it a windows service, and you’ll also have to keep the command prompt open.
Once the plugin and server are running on a place at the same time, you should see your rich presence change as long as your discord settings are correct: User Settings > Game Activity > Display currently running game as a status message → Enabled.
If it doesn’t work and you’ve correctly followed the steps, either contribute to this very barebones installation guide to fix it for others, or submit an issue.
FAQ
Q: My buttons aren’t working? A: You aren’t actually able to click your own buttons unless you’re using a client such as BBD, everyone else can.
Roblox’s opinion of Discord is borderline aggressive, so I doubt it would ever happen on it’s own. Haven’t found any public rich presence plugins for studio on the way, so hope there aren’t any that put me to shame, but I’ll keep working on this one.
Glad you’re interested!
I think there might be something wrong with the buttons feature, because it seems like the lower button keeps saving with the top button’s data, and it’s extremely difficult for me to edit the bottom button at all. Even with these settings:
I’ll work on them today, I already fixed the child 'buttons' one in v0.1.1-alpha. But I’ll make sure to take a look into the 2 identical buttons issue.
Also, don’t be worried about your buttons not doing anything, it’s a weird Discord feature in general where a person can’t click their own buttons, anyone else can though.
This is awesome! Can’t wait for the future updates. Currently, it’s kinda annoying to keep running Command Prompt all the time, but still it’s cool. Love rickrolling people with those buttons
Edit: While doing this, I updated the first button’s link and button title - but the link didn’t update on discord. The title updated.
It’d be a lot harder to do, you can’t send even local HTTP requests from the Roblox client. I’ll take a look at iframe detection and the presences API for it but I’d estimate another few days at least before it’s available for clients.
Edit: While doing this, I updated the first button’s link and button title - but the link didn’t update on discord. The title updated.
You can’t actually click your own buttons, so I’m not sure how you tested this, if you provide some extra details I’ll look into it. (It can take up to a minute for links to update for other people)
Currently, it’s kinda annoying to keep running Command Prompt all the time, but still it’s cool.
I’ll be working on making it a background process/windows service in the future so it’ll take one batch run and you’ve got it for life.
You can open the JS file with any editor if you don’t trust it’s contents. All it is is a NodeJS script, it is what runs on your computer to allow Roblox to interface with Discord’s RPC. Hope you enjoy using it
I hate how the source code is a big module mess, every module gets some other module which then requires more modules and which then requires even more modules resulting in a giant mess
Thanks for fixing the bug, I can safely say that this works remarkably well now! It actually looks really professional to me… Definitely gonna use this often, and I’m excited to see what kind of new features we’ll see in the future!
It’s a lot cleaner than the alternative of jamming completely unrelated code all together in a single large script. If you have a better idea of a code-placement standard, feel free to modify the plugin’s source with Rojo/Git and submit a pull request on the GitHub.