URI: 
       Move radio services to radio. - 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
       ---
   DIR commit f850abb402021106be62251faaab4b6592f7c614
   DIR parent 43ac6c7ed634ca428ff807b06a9206ecf556c67f
  HTML Author: Annna Robert-Houdin <annna@bitreich.org>
       Date:   Fri,  9 Aug 2024 18:27:57 +0200
       
       Move radio services to radio.
       
       Diffstat:
         M annna-message-common                |      29 -----------------------------
         M annna-message-radio                 |      25 +++++++++++++++++++++++++
       
       2 files changed, 25 insertions(+), 29 deletions(-)
       ---
   DIR diff --git a/annna-message-common b/annna-message-common
       @@ -542,35 +542,6 @@ case "${text}" in
                suri="$(printf "%s\n" "${word}" | bitreich-speak)"
                annna-say -s "${server}" -c "${channel}" "${suri}"
                ;;
       -"${ircuser}, please radio play "*)
       -        url="$(printf "%s\n" "${text}" | cut -c 25- | sed 's,\t,    ,g')"
       -        {
       -                ytdl-mpd -a -m -q "$url"
       -                annna-say -s "${server}" -c "${channel}" "Please listen on gophers://bitreich.org/9/radio/listen"
       -        } &
       -        ;;
       -"${ircuser}, please radio say "*)
       -        word="$(printf "%s\n" "${text}" | cut -c 25- | sed 's,\t,    ,g')"
       -        annna-say -s "${server}" -c "${channel}" "Please listen on gophers://bitreich.org/9/radio/listen"
       -        {
       -                printf "%s\n" "${word}" | bitreich-radio-speak
       -        } &
       -        ;;
       -"${ircuser}, please stop speaking on the radio.")
       -        if pkill -f bitreich-radio-speak >/dev/null 2>&1;
       -        then
       -                annna-say -s "${server}" -c "${channel}" "${user}, I stopped speaking."
       -        else
       -                annna-say -s "${server}" -c "${channel}" "${user}, sorry, no instances found."
       -        fi
       -        ;;
       -"${ircuser}, please hold your keynote at brcon2024.")
       -        keynotefile="/home/20h/con/2024/keynote/keynote.txt"
       -        annna-say -s "${server}" -c "${channel}" "Please follow gophers://bitreich.org/9/radio/listen"
       -        {
       -                bitreich-radio-speak "${keynotefile}"
       -        } &
       -        ;;
        "${ircuser}, what can I cook with "*)
                ingredients="$(printf "%s\n" "${text}" | cut -c 29- | sed 's,\t,    ,g')"
                case "$ingredients" in
   DIR diff --git a/annna-message-radio b/annna-message-radio
       @@ -25,6 +25,31 @@ case "${text}" in
                /usr/bin/mpc -q random
                exit # no common messages
                ;;
       +"${ircuser}, please radio play "*)
       +        url="$(printf "%s\n" "${text}" | cut -c 25- | sed 's,\t,    ,g')"
       +        {
       +                ytdl-mpd -a -m -q "$url"
       +                annna-say -s "${server}" -c "${channel}" "Your download ${url} is done.\n"
       +        } &
       +        exit
       +        ;;
       +"${ircuser}, please radio say "*)
       +        word="$(printf "%s\n" "${text}" | cut -c 25- | sed 's,\t,    ,g')"
       +        {
       +                printf "%s\n" "${word}" | bitreich-radio-speak
       +                annna-say -s "${server}" -c "${channel}" "The speech is done.\n"
       +        } &
       +        exit # no common messages
       +        ;;
       +"${ircuser}, please stop speaking on radio.")
       +        if pkill -f bitreich-radio-speak >/dev/null 2>&1;
       +        then
       +                annna-say -s "${server}" -c "${channel}" "${user}, I stopped speaking."
       +        else
       +                annna-say -s "${server}" -c "${channel}" "${user}, sorry, no instances found."
       +        fi
       +        exit # no common messages
       +        ;;
        esac
        
        annna-message-common "${server}" "${channel}" "${user}" "${text}"