Skip to content

Instantly share code, notes, and snippets.

@kentana20
Last active August 29, 2015 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kentana20/e0f5147312c921ba6ee0 to your computer and use it in GitHub Desktop.
Save kentana20/e0f5147312c921ba6ee0 to your computer and use it in GitHub Desktop.
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