A simple Discord Rich Presence client that displays fake Spotify status. This is a toy project for educational purposes.
- Node.js (v18 or higher recommended)
- Bun (recommended) or npm
- A Discord Application with Rich Presence enabled
-
Clone the repository
-
Install dependencies:
bun install # or npm install -
Create a Discord Application:
- Go to https://discord.com/developers/applications
- Create a new application
- Enable Rich Presence under "Rich Presence"
- Upload assets (spotify_logo, play_icon) under "Rich Presence > Assets"
- Copy the Client ID
-
Configure environment variables:
cp .env.example .env # Edit .env and add your Discord Client ID -
Run the script:
bun run rpc-server.js # or node rpc-server.js
To lint the code:
bunx oxlint .To format the code:
bunx prettier --write .The script randomly selects songs from a curated list and displays them as "Now Playing" on Discord. Each song has a random duration between 2-4 minutes, and the status updates automatically when the "song" ends.
✅ This project now uses discord-rpc-revamp, a maintained fork of the abandoned discord-rpc package. While not officially maintained by Discord, it is actively maintained by the community and has zero dependencies.
For production use, you may also consider:
- Discord Social SDK (official but requires OAuth2 and is designed for C++/native games)
MIT - See LICENSE file for details.