bot_reply.rb slightly modified