Add cookie function to annna. - annna - Annna the nice friendly bot. | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit 5298a7a00d5bb800cec8dcda9c3631d9b33df188 | |
parent a65be8b3d8832273ecdc9c1c3900d1a68f2001e2 | |
Author: Annna Robert-Houdin <[email protected]> | |
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(-) | |
--- | |
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… | |
;; | |
+"${ircuser}, please give me a cookie.") | |
+ cookie="$(cookie)" | |
+ if [ -n "${cookie}" ]; | |
+ then | |
+ annna-say -s "${server}" -c "${channel}" "$(echo -e '\001')ACT… | |
+ fi | |
+ ;; | |
"${ircuser}, please help.") | |
annna-say -s "${server}" -c "${user}" "See git://bitreich.org/annna fo… | |
;; |