Skip to content

Instantly share code, notes, and snippets.

@rramsden
Created November 7, 2012 22:23
Show Gist options
  • Save rramsden/4034921 to your computer and use it in GitHub Desktop.
Save rramsden/4034921 to your computer and use it in GitHub Desktop.
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