Add coffee reading feature. - 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 a0dad61707e9a41374ecfe396f9cabd103adf94c DIR parent 6ec4e6856f692cb68f3f0cbbe223874c9a51c7d5 HTML Author: Annna Robert-Houdin <annna@bitreich.org> 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(-) --- DIR 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}"