Skip to content

Parsa-GP/music-rpc

Repository files navigation

RPC for CMUS

Introduntion

first, the title explains everything and second, you spelled intropunction wrong

Client? what is this, a server?

We need a server script that communicates with discord rpc and a script to send info from cmus to the server. because discord needs the script to run indefinitely but cmus runs the script everytime it changes the status, so yeah.

Which is which?

rpc_server.py is the server which it's the script that sets the discord presence to the recieved data from client.
cmus-rpc.py is the client which it sends the info to the server. you can change this code to for example get from mpv and sends it to the server.

Run

Server

Install the necessary packages:

pip install pypresence 

Run it with:

python rpc-server.py

As a service (arch only)

You can setup a systemctl service to autostart the server

Client

Go to wiki/#Supported-Clients for the Instructions

Specia Thanks

to TOBEFILLED for the miku art pixiv | gelbooru
to еще рекомендую for the pixelart of the music notes apppng