Created
November 7, 2012 22:23
-
-
Save rramsden/4034921 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "annoystream/version" | |
module Annoystream | |
def self.start | |
TweetStream.configure do |config| | |
config.consumer_key = '...' | |
config.consumer_secret = '...' | |
config.oauth_token = '...' | |
config.oauth_token_secret = '...' | |
config.auth_method = :oauth | |
end | |
client = TweetStream::Client.new | |
client.on_timeline_status do |status| | |
`say -v Hysterical "#{status.from_user} says #{status.text}"` | |
end | |
client.userstream | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment