Skip to content

Instantly share code, notes, and snippets.

@siyo
Created October 20, 2011 19:03
Show Gist options
  • Save siyo/1301992 to your computer and use it in GitHub Desktop.
Save siyo/1301992 to your computer and use it in GitHub Desktop.
おじいちゃんearthquake.gem plugin
# -*- 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