Add fortune prompt 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 2c0ae9b3f118a301bd866b00f355082c9f3bca1a DIR parent 567f69271f766a0519c67c761cde761bf989e615 HTML Author: Annna Robert-Houdin <annna@bitreich.org> Date: Sun, 21 Jul 2024 20:42:17 +0200 Add fortune prompt to annna. Diffstat: M annna-message-common | 7 +++++++ 1 file changed, 7 insertions(+), 0 deletions(-) --- DIR diff --git a/annna-message-common b/annna-message-common @@ -335,6 +335,13 @@ case "${text}" in annna-say -s "${server}" -c "${channel}" "${user}, sorry, nothing founds." fi ;; +"${ircuser}, what is my fortune?") + fortunecookie="$(fortune-cookie)" + if [ -n "${fortunecookie}" ]; + then + annna-say -s "${server}" -c "${channel}" "${user}, ${fortunecookie}" + fi + ;; "${ircuser}, what is "*) word="$(printf "%s\n" "${text}" | cut -c 16-)" case "$word" in