Add alias_call method for simple annna aliases. - annna - Annna the nice friendly bot.
(HTM) git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
---
(DIR) commit 621ab7c9c50ccad24ed8879d6f3435d6362cb0a7
(DIR) parent 5e8e58582a0c0e2476728f13be0fdf76c788fabf
(HTM) Author: Annna Robert-Houdin <annna@bitreich.org>
Date: Fri, 21 Nov 2025 16:14:34 +0100
Add alias_call method for simple annna aliases.
Diffstat:
M annna-message-common | 6 ++++++
1 file changed, 6 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/annna-message-common b/annna-message-common
@@ -54,6 +54,11 @@ hashtagcount() {
| sed 's,.*total on .*: \([0-9]*\)),\1,')"
}
+alias_call() {
+ export IRC_PRIVMSG_TEXT="$@"
+ exec $0 "$@"
+}
+
isignored=0
for ignorednick in $ignorednicks;
do
@@ -375,6 +380,7 @@ case "${IRC_PRIVMSG_TEXT}" in
"${IRC_USER}, how lame is my nick?") annna-say "$(lameness "${IRC_CMD_USER}")";;
"${IRC_USER}, ding"*) annna-say "${IRC_CMD_USER}, dong.";;
"${IRC_USER}, irly"*) annna-say "${IRC_CMD_USER}, I love you too.";;
+"${IRC_USER}, how fat is the sun?") alias_call "${IRC_USER}, wolfram is sun mass";;
"${IRC_USER}, how is the sun?")
sunuri="$({
printf "https://soho.nascom.nasa.gov/data/realtime/eit_284/512/latest.jpg\n"