Add give towel function to sauna. - 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 fb4c36f23d1a9d6358b97f6d343b99f400a75786
(DIR) parent 68cb0db8c87939918fada620331c5b7d9ed2458d
(HTM) Author: Annna Robert-Houdin <annna@bitreich.org>
Date: Sat, 18 Oct 2025 16:08:10 +0200
Add give towel function to sauna.
Diffstat:
M annna-message-sauna | 6 ++++++
1 file changed, 6 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/annna-message-sauna b/annna-message-sauna
@@ -5,6 +5,12 @@
case "${IRC_CMD}" in
JOIN) annna-say "Welcome ${IRC_CMD_USER}! Please grab a towel and have fun!";;
PART) annna-say $'\001ACTION puts the towel in the laundry.\001';;
+PRIVMSG)
+ case "${IRC_PRIVMSG_TEXT}" in
+ "${IRC_USER}, please give me a towel"*)
+ annna-say "$(echo -e '\001')ACTION gives ${IRC_CMD_USER} a towel.$(echo -e '\001')"
+ ;;
+ esac;;
esac
annna-message-common