Created
November 8, 2011 14:40
-
-
Save hagiyaki/1347902 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 -*- | |
| # gohan tweet / earthquake plugin | |
| # e.g. :gohan #=> 神は言っている。今日は[料理名]を食えと。。。 | |
| # | |
| Earthquake.init do | |
| command :gohan do | |
| s = "神は言っている。今日は" | |
| food= ["ラーメン","うどん","カレー","牛丼","モス","あまから","焼き飯"] | |
| i = rand(food.size) | |
| s << food[i] << "を食えと。。。" | |
| input("#{s}") | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment