This is the code for the twitter bot https://twitter.com/happened_today
It's a mess! The data for the bot is from wikipedia, and is loaded via the script at https://github.com/muffinista/really-simple-history-api which is also a mess!
Seriously, this code is not very good!