Add slapping 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 dcb8d8b506f5b5c07345899e8ce2c42d034a140b
DIR parent d770391f7f114c2a3ed9dd6d8a58b2f2eec33039
HTML Author: Annna Robert-Houdin <annna@bitreich.org>
Date: Tue, 10 Feb 2026 17:54:31 +0100
Add slapping to annna.
Diffstat:
M annna-message-common | 4 ++++
1 file changed, 4 insertions(+), 0 deletions(-)
---
DIR diff --git a/annna-message-common b/annna-message-common
@@ -890,6 +890,7 @@ $'\001'"ACTION cancels "*)
cancel-target "${mobtarget}"
annna-say "${IRC_CMD_USER}, I cancelled ${mobtarget} for you. ( gophers://bitreich.org/I/memecache/cancel-meteor.jpg )";;
$'\001'"ACTION pokes ${IRC_USER}"$'\001') annna-say "$(echo -e '\001')ACTION pokes ${IRC_CMD_USER}$(echo -e '\001')";;
+$'\001'"ACTION slaps ${IRC_USER}"$'\001') annna-say "$(echo -e '\001')ACTION slaps ${IRC_CMD_USER} around a bit with a large trout.$(echo -e '\001')";;
"${IRC_USER}, please show me the mob"*|"${IRC_USER}, what are the mob"*) annna-say "${IRC_CMD_USER}, $(get-cancel-list)";;
"${IRC_USER}, I feel sick"*)
newsstr="$(cd /br/gopher/hypochondria && ./hypochondria -s random)"
@@ -1023,6 +1024,9 @@ $'\001'"ACTION pokes ${IRC_USER}"$'\001') annna-say "$(echo -e '\001')ACTION pok
"${IRC_USER}, please quantum roll d2 for me"*)
qroll="$(($(/home/20h/scm/quantum-rng/quantum-rng) + 1))"
annna-say "${IRC_CMD_USER}, ${qroll} [1d2(scores:[${qroll}])]";;
+"${IRC_USER}, please slap "*)
+ slapuser="${IRC_PRIVMSG_TEXT#* slap }"
+ annna-say "$(echo -e '\001')ACTION slaps ${slapuser} around a bit with a large trout.$(echo -e '\001')";;
"${IRC_USER}, please roll "*" for me"*)
q="${IRC_PRIVMSG_TEXT#* roll }"
q="${q%for*}"