Add Radio speak to annna. - annna - Annna the nice friendly bot. | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit 21942c99e5509574e29d8e27fc360f424f75134f | |
parent 49b61015c6cf4887fe765d4ba6c0be89d49615fe | |
Author: Annna Robert-Houdin <[email protected]> | |
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(-) | |
--- | |
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://b… | |
+ { | |
+ 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://bitr… | |
+ keynotefile="/home/20h/con/2024/keynote/keynote.txt" | |
+ annna-say -s "${server}" -c "${channel}" "Please follow gophers://bitr… | |
{ | |
- bitreich-radio-play "${keynotefile}" | |
+ bitreich-radio-speak "${keynotefile}" | |
} & | |
;; | |
"${ircuser}, what can I cook with "*) |