Add oh hai 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 df9b9a3b2ad659fe000d2ab17ce961ca8b9f7a5d
DIR parent 9082227f289f726f55dc2434d7169548b46afe7d
HTML Author: Annna Robert-Houdin <annna@bitreich.org>
Date: Tue, 23 Mar 2021 11:31:59 +0100
Add oh hai feature.
Thanks for the proposal, adc!
Diffstat:
M annna-message-common | 3 +++
1 file changed, 3 insertions(+), 0 deletions(-)
---
DIR diff --git a/annna-message-common b/annna-message-common
@@ -480,6 +480,9 @@ case "${text}" in
newsstr="$(cd /br/gopher/hypochondria && ./hypochondria -s random)"
annna-say -c "${channel}" "You could have ${newsstr}! Be careful!"
;;
+*"oh hai"*)
+ annna-say -c "${channel}" "${user}, hai! How is your sex life?"
+ ;;
"${botname}, oh hai!")
annna-say -c "${channel}" "${user}, hai! How is your sex life?"
;;