Fix gopher man command. - 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 2133613957b85621e187d8ad75f8327ed36e2c29
DIR parent 07d1a7b2d910c669fedc82c006edc4ce9407b734
HTML Author: Annna Robert-Houdin <annna@bitreich.org>
Date: Sun, 14 Dec 2025 20:07:43 +0100
Fix gopher man command.
Diffstat:
M annna-message-common | 2 +-
M gopherman-news | 6 +-----
2 files changed, 2 insertions(+), 6 deletions(-)
---
DIR diff --git a/annna-message-common b/annna-message-common
@@ -426,6 +426,7 @@ case "${IRC_PRIVMSG_TEXT}" in
"${IRC_USER}, what is my fortune?")
fortunecookie="$(fortune-cookie)"
[ -n "${fortunecookie}" ] && annna-say "${IRC_CMD_USER}, ${fortunecookie}";;
+"${IRC_USER}, what is up with gopher man?") alias_call "${IRC_USER}, gpt Please write a short phrase beginning with \"Gopher Man does ...\" like the Florida Man cases in a very funny way using technical gopher protocol and inter punch lines. Only output the phrase.";;
"${IRC_USER}, what is "*)
word="$(printf "%s\n" "${IRC_PRIVMSG_TEXT}" | cut -c 16-)"
case "$word" in
@@ -583,7 +584,6 @@ case "${IRC_PRIVMSG_TEXT}" in
word="$(printf "%s\n" "${IRC_PRIVMSG_TEXT}" | cut -c 21- | sed 's,\t, ,g')"
suri="$(int2cunei "${word}" | head -n 1)"
annna-say "${suri}";;
-"${IRC_USER}, what is up with gopher man?");; #TODO
"${IRC_USER}, what can I cook with "*)
ingredients="$(printf "%s\n" "${IRC_PRIVMSG_TEXT}" | cut -c 29- | sed 's,\t, ,g')"
case "$ingredients" in
DIR diff --git a/gopherman-news b/gopherman-news
@@ -7,9 +7,5 @@ export PATH="$PATH:/home/annna/bin"
gophermannews="$(gpt "Please write a short phrase beginning with 'Gopher Man does ...' like the Florida Man cases in a very funny way using technical gopher protocol and inter punch lines. Only output the phrase.")"
-if [ -n "${gophermannews}" ];
-then
- annna-say -c "${channel}" "NEWS: ${gophermannews}"
-fi
-
+[ -n "${gophermannews}" ] && annna-say -c "${channel}" "NEWS: ${gophermannews}"