An open API service indexing awesome lists of open source software.

https://github.com/observeroftime/discord-custom-rpc

Simple program for creating a custom Discord RPC on Linux
https://github.com/observeroftime/discord-custom-rpc

discord rich-presence

Last synced: 5 months ago
JSON representation

Simple program for creating a custom Discord RPC on Linux

Awesome Lists containing this project

README

          

# discord-custom-rpc

Custom Discord Rich Presence for Linux written in C.

Depends on `json-c` & `uuid` and is configured during compilation.

First, create an [application][] and add some Rich Presence assets.

[application]: https://discord.com/developers/applications/

Then, create an `Env.mak` file to store the configuration.

```make
# your client ID, required
CLIENT_ID =
# rich presence details, optional
DETAILS =
# rich presence state, optional
STATE =
# large image key, optional
LARGE_IMAGE =
# large image text, optional
LARGE_TEXT =
# small image key, optional
SMALL_IMAGE =
# small image text, optional
SMALL_TEXT =
# set to any value to enable debugging
DEBUG =
```

Now, you can compile and run the application with `make`.

Alternatively, use `make rpc` to only compile it.

You can run the application later with `./rpc`