Skip to content

Instantly share code, notes, and snippets.

@kentana20
Last active August 29, 2015 14:08
nfu.gemspec
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
# 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