Skip to content

Instantly share code, notes, and snippets.

@t-oginogin
Last active August 29, 2015 14:19
Show Gist options
  • Save t-oginogin/03c09b654ac28d783841 to your computer and use it in GitHub Desktop.
Save t-oginogin/03c09b654ac28d783841 to your computer and use it in GitHub Desktop.
Gem::Specification.new do |spec|
spec.name = "ogin_ok"
spec.version = "0.0.1"
spec.authors = ["t.oginogin"]
spec.email = ["t.oginogin@example.com"]
spec.summary = "return ok"
spec.files = ["ogin_ok.rb"]
spec.require_path = "."
end
module Ruboty
module Handlers
class OginOk < Base
on(
/オッケーですか?/,
name: "ok",
description: "Return オッケーです!"
)
def ok(message)
message.reply("オッケーです!")
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment