examples/echoes_bot.rb in chatterbot-1.0.2 vs examples/echoes_bot.rb in chatterbot-2.0.0.pre

- old
+ new

@@ -17,17 +17,17 @@ ## If I wanted to exclude some terms from triggering this bot, I would list them here. ## For now, we'll block URLs to keep this from being a source of spam ## exclude "http://" -blacklist "mean_user, private_user" +blocklist "mean_user, private_user" puts "checking for replies to me" replies do |tweet| # replace the incoming username with #USER#, which will be replaced # with the handle of the user who tweeted us by the # replace_variables helper - src = tweet[:text].gsub(/@echoes_bot/, "#USER#") + src = tweet.text.gsub(/@echoes_bot/, "#USER#") # send it back! reply src, tweet end