Created
February 15, 2013 13:11
-
-
Save siyo/4960284 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 -*- | |
# senzen tweet / earthquake plugin | |
# | |
# gem install moji | |
# | |
# e.g. :senzen あいうえお #=> アイウエオ | |
# | |
require 'moji' | |
Earthquake.init do | |
command %r|^:senzen\s+(.+)|, :as => :senzen do |m| | |
input(Moji.hira_to_kata m[1]) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment