Skip to content

GerbertBless/ndcord

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

ndcord

Simple Discord Rich Presence for Navidrome

How it works?

This python script takes Json data from Navidrome Rest API and then sends it to a Discord developer app via pypresence.

How to start?

Get Discord client_id

Create your new application in the Discord Developer Portal, and get client_id.

Clone This Repository

Clone or download this repository.

git clone https://github.com/tarokeitaro/ndcord.git

Virtual Environment (Optional)

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

Download Requirements

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

Change secret.json

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"
}

Start ndcord!

Just do this!

python ndcord.py

image

To stop this program, click ctrl + C

About

Simple Discord Rich Presence for Navidrome

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%