Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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