This old project of mine is an RPC integration for Discord, designed to work with MusicBee, a popular music player. Developed in Node.js, this script allows you to display the currently playing music information from MusicBee directly on your Discord profile. I completed this project with the help of the Beekeeper plugin, which allowed me to write it in JavaScript (avoiding C# which I am not familiar with).
- Real-time display of the currently playing track information (title, artist, album, artwork, timestamps).
- Automatic updating of Discord status with the current track.
- Node.js (version 12 or higher)
- MusicBee (version 3.3 or higher)
- Beekeeper plugin for MusicBee
- IMGBB account and API key
- Discord account
git clone https://github.com/VZCE/mbrpc.git
cd mbrpc
npm install
Download and install the Beekeeper plugin from here. The Beekeeper plugin is an embedded web server for MusicBee. It exposes most of the MusicBee API as an HTTP interface or a web API.
- Go to IMGBB.
- Sign up for an account and generate an API key.
- Note the API key and add it later to the
IMGBB_API_KEY
field in the .env file.
- Create a new application on the Discord Developer Portal.
- Note the application ID and add it later to the
CLIENT_ID
field in the .env file.
## DISCORD
CLIENT_ID="YOUR_DISCORD_APP_CLIENTID"
SMALL_IMAGE_KEY=""
## BEEKEEPER
API_URL="http://127.0.0.1:8080"
# IMGBB
IMGBB_API_KEY="YOUR_IMGBB_API_KEY"
The API port for Beekeeper is the same for everyone unless you change it in the MusicBee settings.
node app.js
Launch MusicBee and start playing your music. Your Discord status will automatically update with the currently playing track information.
Contributions are welcome! The code is actually not really well optimized. Feel free to submit pull requests or open issues to report bugs or suggest improvements.