A very simple bot that tweets random pictures from a directory
$ git clone https://github.com/angristan/twitter-pic-bot
$ cd twitter-pic-bot
$ bundle install
Create an app on app.twitter.con and get your credentials.
Copy .config-sample.rb
to .config.rb
and fill it with these credentials.
$ ruby bot.rb
It will tweet a random picture ({jpg,jpeg,png,gif}
) from the ./media/
folder.
You can put this in a cron or modify the script to use sleep() in an infinite loop.