Add full catgpt support 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 ba28f1b18cbfb64c4dd8117759445cdc01cbf5de
DIR parent 07331282f16489c153ef86719eaed5c1583cfd88
HTML Author: Annna Robert-Houdin <annna@bitreich.org>
Date: Tue, 31 Jan 2023 11:36:32 +0100
Add full catgpt support to annna.
Diffstat:
M annna-message-common | 16 ++++++++++++++++
1 file changed, 16 insertions(+), 0 deletions(-)
---
DIR diff --git a/annna-message-common b/annna-message-common
@@ -718,6 +718,22 @@ case "${text}" in
fi
} &
;;
+"${ircuser}, meow"*)
+ # https://catgps.wvd.io support
+ nmeows=$(($RANDOM % 14))
+ meows="Meow"
+ for i in $(seq $nmeows);
+ do
+ meows="$meows meow"
+ done
+ if [ $nmeows -lt 4 ];
+ then
+ meows="$meows!"
+ else
+ meows="$meows."
+ fi
+ annna-say -s "${server}" -c "${channel}" "${user}, ${meows}"
+ ;;
"${ircuser}, how many memes do you know?")
annna-say -s "${server}" -c "${channel}" "I know $(hashtagcount) memes: gophers://bitreich.org/1/meme/count"
;;