sabotage-of-day - annna - Annna the nice friendly bot. | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
sabotage-of-day (305B) | |
--- | |
1 #!/bin/sh | |
2 | |
3 channel="#bitreich-books" | |
4 | |
5 export PATH="$PATH:/home/annna/bin" | |
6 | |
7 sabotagedb="/home/annna/bin/modules/simple-sabotage-field-manual/sabotag… | |
8 sabotage="$(shuf -n 1 ${sabotagedb} | cut -d ' ' -f 2-)" | |
9 if [ -n "${sabotage}" ]; | |
10 then | |
11 annna-say -c "${channel}" "Today's sabotage: ${sabotage}" | |
12 fi | |
13 | |
14 |