Created
April 19, 2013 02:55
-
-
Save siyo/5417790 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
| # -*- coding: utf-8 -*- | |
| # copy&paste tweet / earthquake.gem plugin | |
| # | |
| # e.g. :copipe $aa | |
| # | |
| Earthquake.init do | |
| command %r|^:copipe\s+(\d+)|, :as => :copipe do |m| | |
| status = cache.read("status:#{m[1]}") | |
| input status["text"] | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment