Add welcome back feature. - annna - Annna the nice friendly bot.
(HTM) git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
---
(DIR) commit 6b61b59a362bbc7849f6fc690a1200c30aaab26b
(DIR) parent cd1fd68d7d47e216616a513a32143164fb189a19
(HTM) Author: Annna Robert-Houdin <annna@bitreich.org>
Date: Mon, 25 May 2020 12:55:59 +0200
Add welcome back feature.
Diffstat:
M annna-start-services | 12 ++++++++++++
1 file changed, 12 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/annna-start-services b/annna-start-services
@@ -297,6 +297,18 @@ annna_common() {
annna-say -c "${channel}" "$outtext"
fi
+ if [ "${text}" = "${botname}, wb." ];
+ then
+ annna-say -c "${channel}" "${user}, ty! I am so happy to be here. :)"
+ return
+ fi
+
+ if [ "${text}" = "${botname}, welcome back." ];
+ then
+ annna-say -c "${channel}" "${user}, thank you! I am so happy to be here. :)"
+ return
+ fi
+
if [ "${text}" = "${botname}, what's up?" ];
then
newsstr="$(ecl -shell /home/solene/gopher/bin/generator.lisp)"