goomics-of-day - 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 --- goomics-of-day (299B) --- 1 #!/bin/sh 2 3 channel="#bitreich-books" 4 5 export PATH="$PATH:/home/annna/bin" 6 7 goomicuri="$(find /br/gopher/goomics -type f -regex ".*\.png" \ 8 | shuf -n 1 \ 9 | sed 's,/br/gopher,gophers://bitreich.org/I,')" 10 11 if [ -n "${goomicuri}" ]; 12 then 13 annna-say -c "${channel}" "Today's goomic: ${goomicuri}" 14 fi 15 16