Add Radio speak to annna. - 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 21942c99e5509574e29d8e27fc360f424f75134f DIR parent 49b61015c6cf4887fe765d4ba6c0be89d49615fe HTML Author: Annna Robert-Houdin <annna@bitreich.org> Date: Fri, 9 Aug 2024 14:16:20 +0200 Add Radio speak to annna. Diffstat: M annna-message-common | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) --- DIR diff --git a/annna-message-common b/annna-message-common @@ -542,11 +542,18 @@ case "${text}" in suri="$(printf "%s\n" "${word}" | bitreich-speak)" annna-say -s "${server}" -c "${channel}" "${suri}" ;; +"${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 hold your keynote at brcon2024.") - keynotefile="/home/20h/con/2024/keynote/keynote.wav" - annna-say -s "${server}" -c "${channel}" "Please follow gophers://bitreich.org/9/radio/listen." + keynotefile="/home/20h/con/2024/keynote/keynote.txt" + annna-say -s "${server}" -c "${channel}" "Please follow gophers://bitreich.org/9/radio/listen" { - bitreich-radio-play "${keynotefile}" + bitreich-radio-speak "${keynotefile}" } & ;; "${ircuser}, what can I cook with "*)