Tatibot is a project mainly written in Ruby, it's free.
easily deployable - with capistrano - ruby jabber bot