Add cookie function to annna. - 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 5298a7a00d5bb800cec8dcda9c3631d9b33df188
DIR parent a65be8b3d8832273ecdc9c1c3900d1a68f2001e2
HTML Author: Annna Robert-Houdin <annna@bitreich.org>
Date: Tue, 30 Jul 2024 21:15:59 +0200
Add cookie function to annna.
Diffstat:
M annna-message-common | 7 +++++++
1 file changed, 7 insertions(+), 0 deletions(-)
---
DIR diff --git a/annna-message-common b/annna-message-common
@@ -1217,6 +1217,13 @@ case "${text}" in
"${ircuser}, please hug me.")
annna-say -s "${server}" -c "${channel}" "$(echo -e '\001')ACTION hugs ${user}$(echo -e '\001')"
;;
+"${ircuser}, please give me a cookie.")
+ cookie="$(cookie)"
+ if [ -n "${cookie}" ];
+ then
+ annna-say -s "${server}" -c "${channel}" "$(echo -e '\001')ACTION gives ${user} a ${cookie} cookie$(echo -e '\001')"
+ fi
+ ;;
"${ircuser}, please help.")
annna-say -s "${server}" -c "${user}" "See git://bitreich.org/annna for my commands."
;;