In the end it was too easy to set this up. THANKS UNIX. I was planning to have to learn (more) python and choose a python Twitter library etc but in the end I just used TTYtter.pl called from a shell script. I even got to use TR(1) to strip newlines, woo-hoo!
So the bot is made up of:
fortune -n 140 -s
shortfortune | tr '\n' ' ' | TTYtter.pl > /dev/null 2>&1
It's a demonstration of the power of the Unix Philosophy of small well-defined tools that can be joined together easily.
Tweeting fortunes is fun but I'm thinking about creating a better source of tweets: