Anipresence
discord rich presence for ani-cli/animdl
Install / Use
/learn @jakobbbb/AnipresenceREADME
anipresence
discord rich presence for ani-cli/animdl:
<p align="center"> <img style="width: 400px" alt="screenshot" src="https://gist.githubusercontent.com/jakobbbb/d46ec01fc919d857cf5dbc8e9b051bc8/raw/61f74b486b94df68235565119a1cd99e0b254156/screenshot.png"/> </p>deps
your player must be mpv, and you must have either pypresence or lynxpresence installed.
from AUR: yay -S python-pypresence / yay -S python-lynxpresence.
for Discord to display 'Watching' instead of 'Playing' you'll currently need either lynxpresence or the git version of pypresence.
to use the rpc with local media on Linux, you'll also need wmctrl (and a compatible window manager)
how
Linux
start the anipresence.py after mpv has been started.
there's many ways to do this. one hacky way:
add this to your mpv.conf:
[discord-rpc]
profile-cond=os.execute("/path/to/anipresence.py > /dev/null &")
Windows:
since autostart does not work like this on Windows, you can start the script with the argument -d or --daemonlike which checks every 10s if a process matches the regexes. It's called daemon-like, because it will, once started, keep running and check running processes every 10s starting the rpc and connecting to Discord every time it finds a match.
show titles on discord
shows usually have three official titles that AL reconizes and makes easily accessible:
Romaji, Native and English. for EVA that would be "Shin Seiki Evangelion", "新世紀エヴァンゲリオン" and "Neon Genesis Evangelion". anipresence uses romaji as the default title format.
to select which title format to use, set argument -t or --titleformat with the options r | romaji | n | native | e | english.
should you, for example, want enlish titles just change the mpv.conf entry to:
[discord-rpc]
profile-cond=os.execute("/path/to/anipresence.py -t e > /dev/null &")
note: anipresence saves only one so called "display title". if you decide to change the title format, all shows watched before this change will still show their title in the old title format.
nicer titles
patch ani-cli:
- mpv*) nohup "$player_function" --force-media-title="${allanime_title}episode-${ep_no}-${mode}" "$episode" >/dev/null 2>&1 & ;;
+ mpv*) nohup "$player_function" --force-media-title="${title}episode-${ep_no}-${mode}" "$episode" >/dev/null 2>&1 & ;;
check ./ani-patch.sh for an automated way of patching ani-cli
Related Skills
imsg
349.9kiMessage/SMS CLI for listing chats, history, and sending messages via Messages.app.
node-connect
349.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
discord
349.9kDiscord ops via the message tool (channel=discord).
