README.markdown in chatterbot-0.6.2 vs README.markdown in chatterbot-0.6.3

- old
+ new

@@ -107,11 +107,10 @@ search "xyzzy" do |tweet| retweet(tweet[:id]) end ``` - **blacklist** -- you can use this to specify a list of users you don't want to interact with. If you put the following line at the top of your bot: blacklist "user1, user2, user3" @@ -131,9 +130,21 @@ precaution if you want to avoid spreading spam), you could call: exclude "http://" For more details, check out dsl.rb in the source code. + +Direct Client Access +-------------------- + +If you want to do something not provided by the DSL, you have access +to an instance of Twitter::Client provided by the **client** method. +In theory, you can do something like this in your bot to unfollow +users who DM you: + + client.direct_messages_received(:since_id => since_id).each do |m| + client.unfollow(m.user.name) + end Authorization -------------