Introduction
Introduction Statistics Contact Development Disclaimer Help
Move radio services to radio. - annna - Annna the nice friendly bot.
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit f850abb402021106be62251faaab4b6592f7c614
parent 43ac6c7ed634ca428ff807b06a9206ecf556c67f
Author: Annna Robert-Houdin <[email protected]>
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(-)
---
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 gop…
- } &
- ;;
-"${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 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 s…
- else
- annna-say -s "${server}" -c "${channel}" "${user}, sorry, no i…
- 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://bitr…
- {
- 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
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}…
+ } &
+ 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.\…
+ } &
+ 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 s…
+ else
+ annna-say -s "${server}" -c "${channel}" "${user}, sorry, no i…
+ fi
+ exit # no common messages
+ ;;
esac
annna-message-common "${server}" "${channel}" "${user}" "${text}"
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.