Sha256: 8737e9aad87f7d83a437cfa172e75e9de9aee7da0a6c4917432324a18f893552
Contents?: true
Size: 373 Bytes
Versions: 4
Compression:
Stored size: 373 Bytes
Contents
require_relative "./api" require "simple_oauth" api = Twitter::Api.new keyword = ARGV.first ruby_tweet = api.get_user_timeline.find do |tweet| tweet.text.include?(keyword) end || api.search(keyword).first if ruby_tweet puts "Gotcha!" puts ruby_tweet.text else puts "We searched in your timeline and in the world for #{keyword} and we didn't find nothing :(" end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
dialers-0.2.2 | examples/twitter/usage.rb |
dialers-0.1.2 | examples/twitter/usage.rb |
dialers-0.1.1 | examples/twitter/usage.rb |
dialers-0.1.0 | examples/twitter/usage.rb |