Update bot.rb

Updated code to represent current implementation.