Skip to content

tavignesh/Discord-Rich-prescence

Repository files navigation

Discord

Made With

DCustomRPC: The Rewrite!

DCustomRPC is a custom rich presence client that you can customize yourself!!

intro_img

Setting up the config:

The config should be fairly easy to setup:

  1. Firstly go to Discord Developers (https://discord.com/developers/applications/) and sign in.
  2. From here, click the "New App" button and enter a "App Name". This will show as what you are playing. "App Description" and "App Icon" do not matter for rich presence.
  3. After you have done this, you can copy the "Client ID" (under "App Details") and replace the client_id already in the config file.
  4. To setup the game list, we will need to separate each of the games by a "-" with the spacing from the config for the dashes and the remaining keys. Each game can contain the following:
    • details - This is the shorter description for the game:

      details

    • state - This is the longer description for the game:

      state

    • large_image - The image key for the large image on the game. In order to attach your image to a key, open up your Discord Developers page for your app and scroll down to "Rich Presence Assets". From here, since we want a large image, we upload the image, enter the key (which we will write in the config) and select "Large". Then make sure to click "Upload Asset" and "Save Changes". After we add to the config, this will look like this:

      lg_image

    • large_text - This will be the text for when you hover over the large image:

      lg_text

    • small_image - The image key for the small image on the game. In order to attach your image to a key, open up your Discord Developers page for your app and scroll down to "Rich Presence Assets". From here, since we want a small image, we upload the image, enter the key (which we will write in the config) and select "Small". Then make sure to click "Upload Asset" and "Save Changes". After we add to the config, this will look like this:

      sm_image

    • small_text - This will be the text for when you hover over the small image:

      sm_text

    • buttons - A list of dicts containing buttons and their URLs. Up to two buttons can be specified.

      buttons

Support Server

Prerequisites:

Make sure you have some brain. Please make sure that game statuses are turned on:

Game Toggle

Setting up DCustomRPC:

DCustomRPC requires Python 3.6+. If you have anything older installed, you will need to install Python 3.6+ and make sure it is added to the PATH. From here, you can run py -m pip install -r requirements.txt (the py bit might change to python3.5/python3.6, try that if you can't get that to work).

Starting DCustomRPC:

Running Directly:

  1. Install python with PATH (just tick the PATH box during installation)
  2. Edit config.yaml as per your preference
  3. Open startup.bat

Command Line (cmd):

In order to check everything is working in the command line, you can run py dcustomrpc.pyw.