-
-
Save jandudulski/1097438 to your computer and use it in GitHub Desktop.
Open tweet in a browser (Earthquake.gem plugin)
This file contains 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
Earthquake.init do | |
command :o do |m| | |
begin | |
tweet = twitter.status(m[1]) | |
browse "https://twitter.com/#{tweet['user']['screen_name']}/status/#{m[1]}" | |
rescue | |
puts 'invalid input' | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment