gutenberg-news - annna - Annna the nice friendly bot. | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
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: ${bo… | |
14 fi | |
15 |