Introduction
Introduction Statistics Contact Development Disclaimer Help
Add coffee reading feature. - annna - Annna the nice friendly bot.
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit a0dad61707e9a41374ecfe396f9cabd103adf94c
parent 6ec4e6856f692cb68f3f0cbbe223874c9a51c7d5
Author: Annna Robert-Houdin <[email protected]>
Date: Tue, 27 Apr 2021 20:29:25 +0200
Add coffee reading feature.
Diffstat:
M annna-message-common | 5 +++++
1 file changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/annna-message-common b/annna-message-common
@@ -499,6 +499,11 @@ case "${text}" in
techstr="$(${modbase}/markov_tech/markov)"
annna-say -c "${channel}" "${techstr}"
;;
+"${botname}, please coffee read "*)
+ readtarget="$(printf "%s\n" "${text}" | cut -c 27-)"
+ horostr="$($HOME/scm/bullshit/horoscope)"
+ annna-say -c "${channel}" "${readtarget}, ${horostr}"
+ ;;
"${botname}, what's my horoscope?")
horostr="$($HOME/scm/bullshit/horoscope)"
annna-say -c "${channel}" "${user}, ${horostr}"
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.