| Fix gopher man command. - annna - Annna the nice friendly bot. | |
| git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
| Log | |
| Files | |
| Refs | |
| Tags | |
| README | |
| --- | |
| commit 2133613957b85621e187d8ad75f8327ed36e2c29 | |
| parent 07d1a7b2d910c669fedc82c006edc4ce9407b734 | |
| Author: Annna Robert-Houdin <[email protected]> | |
| 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(-) | |
| --- | |
| 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}, ${fortunecook… | |
| +"${IRC_USER}, what is up with gopher man?") alias_call "${IRC_USER}, gpt Pleas… | |
| "${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, … | |
| 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 … | |
| case "$ingredients" in | |
| 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 d… | |
| -if [ -n "${gophermannews}" ]; | |
| -then | |
| - annna-say -c "${channel}" "NEWS: ${gophermannews}" | |
| -fi | |
| - | |
| +[ -n "${gophermannews}" ] && annna-say -c "${channel}" "NEWS: ${gophermannews}" | |