Created
October 20, 2011 19:03
-
-
Save siyo/1301992 to your computer and use it in GitHub Desktop.
おじいちゃんearthquake.gem plugin
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 -*- | |
# おじいちゃん plugin | |
# | |
Earthquake.init do | |
t = lambda{(rand(2) == 0 ? Time.now.to_f : nil).to_s} | |
command /^:ガバリ|:gabari/, :as => :gabari do | |
input("ガバリ " + t.call) | |
end | |
command /^:フロア|:[fh]uroa/, :as => :huroa do | |
input("フロア " + t.call) | |
end | |
command /^:フロハ|:[fh]uroha/, :as => :huroha do | |
input("フロハ " + t.call) | |
end | |
command /^:バタリ|:batari/, :as => :batari do | |
input("バタリ " + t.call) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment