Simple Discord Rich Presence for Navidrome
This python script takes Json data from Navidrome Rest API and then sends it to a Discord developer app via pypresence.
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 python environment, 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 libraries pypresence
and requests
.
pip install requests
Currently, this project depends on the latest development version of pypresence.
pip install https://github.com/qwertyquerty/pypresence/archive/master.zip
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