Last active
August 29, 2015 14:08
nfu.gemspec
This file contains 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
Gem::Specification.new do |spec| | |
spec.name = "nfu" | |
spec.version = "0.0.1" | |
spec.authors = ["kentana20"] | |
spec.email = ["kentana20@kentana20.com"] | |
spec.summary = "return nfu" | |
spec.files = ["nfu.rb"] | |
spec.require_path = "." | |
end |
This file contains 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
# nfu.rb | |
# んふんふを唱える | |
module Ruboty | |
module Handlers | |
class Nfu < Base | |
on( | |
/なめこだよ/, # "なめこだよ"に反応して | |
name: "nfu", # #nfuメソッドが呼ばれる | |
description: "Return んふんふ" # これは"@ruboty help"でhelpを表示したとき説明文として表示される | |
) | |
def nfu(message) | |
message.reply("んふんふ :heartpulse:") | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment