Add hugging others support. - annna - Annna the nice friendly bot. | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit c77229b97a3d06a7b17fef1a4c950f2de1713069 | |
parent 1635ab53222e9065727faad4231dc9e070e89414 | |
Author: Annna Robert-Houdin <[email protected]> | |
Date: Thu, 29 Aug 2024 14:17:50 +0200 | |
Add hugging others support. | |
Diffstat: | |
M annna-message-common | 8 ++++++++ | |
1 file changed, 8 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/annna-message-common b/annna-message-common | |
@@ -1416,6 +1416,14 @@ case "${text}" in | |
"${ircuser}, please hug me.") | |
annna-say -s "${server}" -c "${channel}" "$(echo -e '\001')ACTION hugs… | |
;; | |
+"${ircuser}, please hug "*" for me.") | |
+ huggee="${text#* please hug }" | |
+ huggee="${huggee% for me*}" | |
+ if [ -n "${huggee}" ]; | |
+ then | |
+ annna-say -s "${server}" -c "${channel}" "$(echo -e '\001')ACT… | |
+ fi | |
+ ;; | |
"${ircuser}, how many fucks were given?") | |
annna-say -s "${server}" -c "${channel}" "${user}, current fucks given… | |
;; |