Created
June 13, 2011 23:56
-
-
Save no6v/1024047 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
diff --git a/lib/earthquake/commands.rb b/lib/earthquake/commands.rb | |
index 80d1841..d9dfd9b 100644 | |
--- a/lib/earthquake/commands.rb | |
+++ b/lib/earthquake/commands.rb | |
@@ -79,6 +79,12 @@ Earthquake.init do | |
puts_items twitter.user_timeline(:screen_name => m[1]) | |
end | |
+ # :recent jugyo $gg | |
+ # good shortcut to trace back through ones history | |
+ command %r|^:recent\s+([^\/\s]+)\s+(\d+)$|, :as => :recent do |m| | |
+ puts_items twitter.user_timeline(:screen_name => m[1], :max_id => m[2]).reverse | |
+ end | |
+ | |
# :recent yugui/ruby-committers | |
command %r|^:recent\s+([^\s]+)\/([^\s]+)$|, :as => :recent do |m| | |
puts_items twitter.list_statuses(m[1], m[2]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment