Skip to content

matejmajny/Discord-RPC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord RPC

This project is using discord-rpc (NPM library) and powered by JavaScript (Node.js), it should run on every common OS (Linux, MacOS, Windows)

❗ Register your RPC on Discord website (mandatory for all) ❗

  • Go to https://discord.com/developers/applications
  • Click on New Application and name your app by that what you want title of your RPC to be!
  • Click on OAuth2 --> General and copy your Client ID and store it somewhere for later
  • Click on Rich Presence --> Art Assets and upload some images (2) what you want to use later (optional)

Run the app 🟢

1. Install app with installer and use GUI (Windows)

Make sure you have installed:

How to set it up?

  • Make sure that you have registered your RPC
  • Download WindowsInstaller_GUI.exe, it may get flagged as virus but it isn't.
  • Process is pretty straightforward from there so it doesn't need further explanation I think.

2. Running raw code files GUI/CLI (Linux, MacOS, Windows)

Make sure you have installed:

How to set it up?

  • Download Universal_CLI.zip or git clone this repository.
  • Make sure that you have registered your RPC
  • Edit config.js
  • CLI: Run npm install and node index.js in command line/terminal
  • GUI: Run pip3 install nicegui and python3 gui.py in command line/terminal

3. Run on background (Linux, MacOS, Windows)

Make sure you have installed:

How to set it up?:

  • Install PM2 if you havent already npm install pm2 -g
  • Edit config.js
  • Run pm2 start index.js in Command Line/Terminal
  • Run pm2 list and check if app is running!
  • Note: This makes app run fully on background, kill it with pm2 stop <name>

config.js configuration (CLI) 🔧

  • This doesnt need to be done when using GUI.
  • put everything what should be in mentioned line to "putItHere"
{
    "clientID": "", // client ID from discord.dev portal
    "largeImage": "", // name of image (big) uploaded on discord.dev
    "largeImageText": "", // comment to display after hovering mouse on large image
    "smallImage": "", // name of image (small) uploaded on discord.dev
    "smallImageText": "", // comment to display after hovering mouse on smal image
    "state": "", // state what you want to display
    "details": "", // details what you want to display
    "button1": "", // button 1 text
    "buttonURL1": "", // button 1 URL
    "button2": "", // button 2 text
    "buttonURL2": "" //button 2 URL
}