---
title: "Deploy Discord-RPC-Selfbot"
description: "A Discord Selfbot for Custom Rich Presence"
category: "Bots"
url: https://railway.com/deploy/jsZQh-
---

# Deploy Discord-RPC-Selfbot

A Discord Selfbot for Custom Rich Presence

**[Deploy Discord-RPC-Selfbot on Railway](https://railway.com/template/jsZQh-)**

- **Creator:** thecat
- **Category:** Bots
- **Total deploys:** 33

## Template content

### discord-rpc-selfbot

- **Source:** thecats1105/discord-rpc-selfbot

## Documentation

Check out [Github Repository](https://github.com/thecats1105/discord-rpc-selfbot) for more information

# Deploy and Host Discord RPC Selfbot

[![Deploy on Railway](https://railway.com/button.svg)](https://railway.com/template/jsZQh-?referralCode=DY_B7C)

A Discord Selfbot for Custom Rich Presence

> [!WARNING]  
> **I don't take any responsibility for blocked Discord accounts that used this module.**

> [!CAUTION]  
> **Using this on a user account is prohibited by the [Discord TOS](https://discord.com/terms) and can lead to the account block.**
---
## About Hosting

1. Fill out your [`config.json`](https://github.com/thecats1105/discord-rpc-selfbot/blob/main/config.json)

```json
{
  "$schema": "https://raw.githubusercontent.com/thecats1105/discord-rpc-selfbot/refs/heads/main/config.schema.json",
  "APPLICATION_ID": "",
  "type": "",
  "name": "",
  "details": "",
  "state": "",
  "streamURL": "",
  "party": {
    "size": {
      "current": null,
      "max": null
    }
  },
  "setLocalTime": null,
  "timezone": "",
  "startTimeStamp": null,
  "endTimeStamp": null,
  "assets": {
    "large_image": "",
    "large_text": "",
    "small_image": "",
    "small_text": ""
  },
  "buttons": [
    {
      "label": "",
      "url": ""
    },
    {
      "label": "",
      "url": ""
    }
  ],
  "refreshInterval": null
}
```

2. Upload your `config.json` to Github Gist or any webservers

3. Setup your Environment

```env
CONFIG_URL=""
TOKEN=""
```
---
## About Configs

### `STREAMING` Activity Type

If the Activity Type is set to `STREAMING`, the `streamURL` value must be set to the URL of that stream.

e.g.:

```json
{
  "type": "STREAMING",
  "streamURL": "https://www.twitch.tv/thecats1105"
}
```
---
### Set Timestamp to LocalTime

&gt; [!NOTE]
&gt; If you want to use this function, you need to remove `startTimeStamp` and `endTimeStamp` key.

By setting the `setLocalTime` value to `true` and entering a Timezone value from the IANA Time Zone Database for the `timezone` value, you can set the total activity time to the current time in that Timezone.

e.g. Setting to the current time in the `Asia/Seoul` Timezone:

```json
{
  "setLocalTime": true,
  "timezone": "Asia/Seoul"
}
```
---
### Assets

`assets.large_image` and `assets.small_image` must be formatted as follows:

- `cdn.discordapp.com` URL
- `media.discordapp.net` URL
- Assets ID
  - See [here](https://discordjs-self-v13.netlify.app/#/docs/docs/main/typedef/RichPresenceImage) for more information.
  - You can get the ID of each Asset by running this command:
  ```bash
  curl https://discord.com/api/v9/oauth2/applications//assets
  ```
- Media Proxy (`mp:external/`)
- Twitch (`twitch:`)
- YouTube (`youtube:`)
- Spotify (`spotify:`)
---
## Common Use Cases
---
## Why Deploy
---
## Dependencies for
- [`axios`](https://www.npmjs.com/package/axios)
- [`dayjs`](https://www.npmjs.com/package/dayjs)
- [`dayjs-plugin-utc`](https://www.npmjs.com/package/dayjs-plugin-utc)
- [`discord.js-selfbot-v13`](https://www.npmjs.com/package/discord.js-selfbot-v13)
### Deployment Dependencies
- [Node.js v22](https://nodejs.org/)

## Similar templates

- [Telegram JavaScript Bot](https://railway.com/deploy/5lRkWa) — A template for Telegram bot in JavaScript using grammY
- [Cobalt Tools [Updated Aug ’26]](https://railway.com/deploy/cobalt) — Cobalt Tools [Aug ’26] (Media Downloader, Converter & Automation) Self Host
- [Telegram Gateway](https://railway.com/deploy/railway-telegram-gateway) — Multi-bot Telegram webhook gateway with real-time WebSocket event streaming

Open this page in a browser: https://railway.com/deploy/jsZQh-
