I'm sorry for the ass code, I'm kinda new in the c++ world.
Warning
Currently only supports Windows
- First of all, the software is not required to be launched manually. It is launched by a browser extension when it is needed and closes itself when it's not.
- Install a compatible browser extension.
- Open a page that the extension can work with.
- Accept browser's webrichpresence:// launching prompt (make sure to tick the checkbox to make it work seamlessly).
The release archive contains:
- WebRichPresenceW.exe — the software itself;
- WebRichPresence.exe — a verbose version of the software that launches with a terminal for troubleshooting purposes;
- discord_partner_sdk.dll — a vital component of the software.
- Download the latest release archive from the releases.
- Extract it somewhere. The software is portable (as long as it was launched once in a new directory if was moved).
- Launch WebRichPresenceW.exe.
- Launch the software from JavaScript by opening the
webrichpresence://<identifier>/<port>"URI, e.g.window.location.href = "webrichpresence://<identifier>/<port>"; - Connect to the software via WebSocket:
ws://localhost:<port>/<identifier>; - Start sending commands. Types are available at webrichpresence.types.ts.
- uses Discord Social SDK
- uses https://github.com/crowcpp/crow
- uses https://github.com/nlohmann/json
