update chat.rb to output new chat log for learning
update chat.rb