Chatterbot 0.6.2

I just pushed a new release of Chatterbot. The main change is mostly transparent – I've switched from the old twitter_oauth gem to the much nicer Twitter gem. The old gem was great, but it hasn't been updated in years. The Twitter gem is being actively developed, implements the whole Twitter API, and does a very nice job of it.

This will make it a lot easier to extend Chatterbot with new features, such as checking your followers, sending direct messages, reporting spam, and more. You can get an idea of what you can do by checking out the documentation for the gem, and there's a small example in the 'direct client access' section of the Chatterbot readme.

Speaking of examples and documentation, I also spent some time improving the Chatterbot docs.

I also updated the bot authorization process with a few nice things – when you are setting up a new bot, the URLs for authorizing Twitter will open up in your browser.

Finally, I added a '-r' option to bots. If you run "botname -r", it will essentially reset the most recent tweet id for your bot to a really high value, so that if your bot hasn't been running for awhile, you don't spam people who interacted with you a month ago. Also handy for debugging and setting up your bot.

Filed under: Twitter, chatterbot
blog comments powered by Disqus