Simple Discord Rich Presence for Navidrome
Python will take Json data from Navidrome Rest API and then send it to Discord API.
Create your new application in the Discord Developer Portal, and get client_id
.
Clone or download this repository.
git clone https://github.com/tarokeitaro/ndcord.git
If you don't want to disturb your global environment your python system, you can create a virtual environment.
python -m venv env
Then enter the virtual environment.
Linux/MacOS
source env/bin/activate
Windows Command Prompt
source env\Scripts\activate.bat
Windows PowerShell
source env\Scripts\Activate.ps1
This project requires the library of pypresence
and requests
.
pip install pypresence requests
Fill in according to the data you have and this is mandatory!
Important. The "server"
field must include /
at the end of the URL.
{
"client_id": "xxxxxxxxxxxxxxxxxxx",
"server": "https://your.ndhost.here/",
"username": "john",
"password": "john123"
}
Just do this!
python ndcord.py
To stop this program, click ctrl + C