fortune-cookie-of-day - annna - Annna the nice friendly bot. | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
fortune-cookie-of-day (243B) | |
--- | |
1 #!/bin/sh | |
2 | |
3 channel="#bitreich-books" | |
4 | |
5 export PATH="$PATH:/home/annna/bin" | |
6 | |
7 fortunecookie="$(fortune-cookie)" | |
8 if [ -n "${fortunecookie}" ]; | |
9 then | |
10 annna-say -c "${channel}" "Today's fortune: ${fortunecookie}" | |
11 art-of-day "${fortunecookie}" | |
12 fi | |
13 | |
14 |