>>1305Of the bot, you mean?
The account is controlled using Twidge, a command line Twitter client. It's easy to set up, and I won't describe it here.
Inside the crontab, there are these lines:
*/5 * * * * twidge lsreplies -su -e /home/ring/bin/godreply
0 * * * * /home/ring/bin/hourly-oracle
30 * * * * /home/ring/bin/hourly-bible
hourly-oracle:
#!/bin/bash
twidge update "Hourly oracle: $(/home/ring/bin/godbot words)"
hourly-bible:
#!/bin/bash
twidge update "Hourly Bible quote: $(/home/ring/bin/godbot bible)"
godreply:
#!/bin/bash
if [ $[RANDOM % 2 ] == 1 ]; then
twidge update -i $1 "@$2 $(/home/ring/bin/godbot words)"
else
twidge update -i $1 "@$2 $(/home/ring/bin/godbot bible)"
fi
godbot:
#!/bin/bash
case $1 in
bible)
shuf -n 1 /home/ring/bin/Bible.TXT –random-source=/dev/urandom
;;
words)
shuf -n 10 /usr/share/dict/words –random-source=/dev/urandom | tr '\n' ' '
;;
esac
Bible.TXT is the file available at templeos.org, with the blank lines removed.