Introduction
Introduction Statistics Contact Development Disclaimer Help
annna-message-common: generate random Bach audio on request - annna - Annna the…
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit eb4dce47da7a2d2415d233f053e9135e255c2787
parent 181019165f861c28b8e7089328baff2b8dfe1fca
Author: Anders Damsgaard <[email protected]>
Date: Fri, 9 Aug 2024 12:01:07 +0200
annna-message-common: generate random Bach audio on request
Signed-off-by: Annna Robert-Houdin <[email protected]>
Diffstat:
M annna-message-common | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/annna-message-common b/annna-message-common
@@ -361,7 +361,7 @@ case "${text}" in
fortunecookie="$(fortune-cookie)"
if [ -n "${fortunecookie}" ];
then
- annna-say -s "${server}" -c "${channel}" "${user}, ${fortuneco…
+ annna-say -s "${server}" -c "${channel}" "${user}, ${fortuneco…
fi
;;
"${ircuser}, what is "*)
@@ -1112,6 +1112,15 @@ case "${text}" in
| head -n 1)"
annna-say -s "${server}" -c "${channel}" "${user}, I think ${pick} is …
;;
+"${ircuser}, please play some Bach"*)
+ midifile="$(find . /home/annna/bin/modules/midi-media/bach -name '*.mi…
+ | sort -R \
+ | head -n 1)"
+ outfile="/br/gopher/midi/${midifile##*/}.ogg"
+ if play-midi "$midifile" >"$outfile"; then
+ annna-say -s "${server}" -c "${channel}" "${user}, gophers://b…
+ fi
+ ;;
"${ircuser}, please antidepressant #"*|\
"${ircuser}, please amplify #"*|\
"${ircuser}, please amsterdamify #"*|\
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.