Introduction
Introduction Statistics Contact Development Disclaimer Help
radio-channel-service.sh - annna - Annna the nice friendly bot.
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
radio-channel-service.sh (395B)
---
1 #!/bin/sh
2
3 export PATH="/home/annna/bin:$PATH"
4
5 ircuser="$1"
6 radiobase="$2"
7 ircbase="$3"
8 server="$4"
9 channel="$5"
10
11 # Wait for mpd to be alive.
12 while /bin/true;
13 do
14 while ! mpc -q;
15 do
16 sleep 5
17 done
18
19 while mpc -q;
20 do
21 currentsong="$(mpc current --wait)"
22 if [ -n "${currentsong}" ];
23 then
24 annna-say -s "${server}" -c "${channel}" "Now pl…
25 fi
26 done
27 sleep 5
28 done
29
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.