Skip to content

Instantly share code, notes, and snippets.

@hagiyaki
Created November 8, 2011 14:40
Show Gist options
  • Select an option

  • Save hagiyaki/1347902 to your computer and use it in GitHub Desktop.

Select an option

Save hagiyaki/1347902 to your computer and use it in GitHub Desktop.
ご飯が決まらない時用earthquake.gem plugin
# -*- 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