Add hype support. - 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 b7d639aecf3d8225a2d2e0c9aa1fdc6ce877313e
DIR parent 9f01a4d6178989ed5ebba2e9f3765d20a1d5dc0c
HTML Author: Annna Robert-Houdin <annna@bitreich.org>
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(-)
---
DIR 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 CAR!"
;;