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 -*- | |
# cola tweet / earthquake plugin | |
# | |
# e.g. :cola うまい #=> コうまいーラ | |
# | |
Earthquake.init do | |
command :cola do |m| | |
input(":update コ#{m[1]}ーラ") | |
end | |
end |
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 -*- | |
# gyaku tweet | |
# | |
# e.g. :gyaku hoge => egoh | |
# reverseと一緒にしたいけどスキルなくて無理だったおversion | |
Earthquake.init do | |
command %r|^:gyaku\s*(\d+)*\s+(.+)$|, :as => :gyaku do |m| | |
text = m[2] | |
input text.split(//).reverse.join | |
end |
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 -*- | |
# ogyohee tweet / earthquake plugin | |
# | |
# ogyohee: http://shindanmaker.com/152454 | |
# | |
require 'httpclient' | |
Earthquake.init do | |
command :byunogyo do | |
url = "http://shindanmaker.com/152454" |