This project is a Node.js application that sets up and manages a Discord Rich Presence (RPC) client with custom activities. The activities can be customized to show different states and information on your Discord profile.
- Customizable activities with large and small images.
- Automatic activity rotation.
- Retry logic for setting activities and logging in.
- Graceful shutdown handling.
- Simple logging system.
-
Clone the repository:
git clone https://github.com/ThunderDoesDev/Custom-RPC.git cd Custom-RPC
-
Install dependencies:
npm install
-
Update the
config.json
file in theSettings
directory with your Discord client ID and desired status timeout:{ "client_id": "YOUR_DISCORD_CLIENT_ID", "status_timeout": 15000 }
Replace
YOUR_DISCORD_CLIENT_ID
with your actual Discord client ID. -
Add your image assets to your Discord application under the "Rich Presence" section, and update the
largeImageKey
,smallImageKey
, and other related fields in the activities array.
Run the application with the following command:
node index.js
The client will log in to Discord and start rotating through the defined activities.
You can customize the activities in the index.js
file. The activities
array contains multiple activity objects that you can modify. Each activity can have:
details
: A short description of what you are doing.state
: The current state of your activity.startTimestamp
: A timestamp for when the activity started.largeImageKey
andlargeImageText
: Key and text for the large image.smallImageKey
andsmallImageText
: Key and text for the small image.instance
: Whether this activity is an instance.buttons
: An array of buttons withlabel
andurl
.
The logging functionality uses a custom logger module. Modify the logger
module in the Functions
directory to change how logging is handled.
Error handling is managed by the errors
module in the Functions
directory. Customize this module to handle errors as needed.
This project is licensed under the APACHE License - see the LICENSE file for details.
- discord-rpc for the Discord RPC client.
- cfonts for the fancy console fonts.
For support, issues, or enhancements, please open an issue in this repository or join our discord support server.