radio-channel-service.sh - annna - Annna the nice friendly bot.
HTML git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
---
radio-channel-service.sh (276B)
---
1 #!/bin/sh
2
3 export PATH="/home/annna/bin:$PATH"
4
5 while annna-alive;
6 do
7 event="$(mpc idle 2>/dev/null)"
8 case "${event}" in
9 *playlist*|*player*)
10 newsong="$(mpc current 2>/dev/null)"
11 [ -n "${newsong}" ] && annna-say "Now playing: ${newsong}";;
12 esac
13 sleep 5
14 done
15
16 exit 0
17