URI: 
       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 (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 playing: ${currentsong}"
           25                 fi
           26         done
           27         sleep 5
           28 done
           29