gutenberg-news - 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 --- gutenberg-news (340B) --- 1 #!/bin/sh 2 3 export PATH="$PATH:/home/annna/bin" 4 5 bookchannel="#bitreich-books" 6 7 bookrec="$(curl -s gopher://gopher.icu/0/gutenberg/newbooks.atom.xml \ 8 | sfeed \ 9 | sed 's,^[0-9]*\t\([^\t]*\)\t\([^\t]*\).*,\1 ( \2 ),' \ 10 | shuf -n 1)" 11 if [ -n "${bookrec}" ]; 12 then 13 annna-say -c "${bookchannel}" "Today's book recommendation: ${bookrec}" 14 fi 15