Add hype support. - annna - Annna the nice friendly bot. | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit b7d639aecf3d8225a2d2e0c9aa1fdc6ce877313e | |
parent 9f01a4d6178989ed5ebba2e9f3765d20a1d5dc0c | |
Author: Annna Robert-Houdin <[email protected]> | |
Date: Sun, 25 Aug 2024 20:51:31 +0200 | |
Add hype support. | |
Diffstat: | |
M annna-message-common | 12 ++++++++++++ | |
1 file changed, 12 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/annna-message-common b/annna-message-common | |
@@ -303,6 +303,18 @@ case "${text}" in | |
done | |
annna-say -s "${server}" -c "${channel}" "${user}, ${finalexclamation}" | |
;; | |
+"${ircuser}, hype") | |
+ # Using the same database for funny hacks. | |
+ exclamation="$(printf "%s\n" "${text}" | sed "s;${ircuser}, \(.\);\1;g… | |
+ exclamationsintime=$(exclamatio "${user}") | |
+ finalexclamation="${exclamation}" | |
+ while [ $exclamationsintime -gt 1 ]; | |
+ do | |
+ finalexclamation="${finalexclamation} ${exclamation}" | |
+ exclamationsintime=$(($exclamationsintime - 1)) | |
+ done | |
+ annna-say -s "${server}" -c "${channel}" "${user}, ${finalexclamation}" | |
+ ;; | |
*">:3"*) | |
annna-say -s "${server}" -c "${channel}" "OMG IT'S A LION GET IN THE C… | |
;; |