Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 32 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,37 @@ Rich Presence (RPC) is the name for how some apps can talk to Discord desktop on

## Usage

### Server (**REQUIRED**)
1. Have latest (>=18) Node installed
2. Clone GitHub repo
3. `npm install`
4. Run server with `node src`
#### Server (**REQUIRED**)

1. Install dependencies (Git, Node >=18, below are commands for Node 20 installation, replace 20 for 18 if needed)
###### [RedHat and derivatives, Fedora, Nobara, etc (yum)](https://github.com/nodesource/distributions#supported-versions-1)
```
sudo yum install https://rpm.nodesource.com/pub_20.x/nodistro/repo/nodesource-release-nodistro-1.noarch.rpm git -y
sudo yum install nodejs -y --setopt=nodesource-nodejs.module_hotfixes=1
```
###### [Debian and derivatives, Ubuntu, Mint, PopOS, etc (apt)](https://github.com/nodesource/distributions#supported-versions)
```
sudo apt-get update
sudo apt-get install -y ca-certificates curl gnupg
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
NODE_MAJOR=20
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
sudo apt-get update
sudo apt-get install nodejs git -y
```

2. Clone repository and install
```
git clone https://github.com/OpenAsar/arrpc.git
cd ./arrpc
npm install
```

3. Run server
```
node src
```

### Web
#### No Mods
Expand Down Expand Up @@ -71,4 +97,4 @@ Then just use apps with Discord RPC like normal and they *should* work!
- [X] SET_ACTIVITY
- [X] INVITE_BROWSER
- [X] GUILD_TEMPLATE_BROWSER
- [X] DEEP_LINK
- [X] DEEP_LINK