Last active
August 29, 2015 14:19
-
-
Save t-oginogin/03c09b654ac28d783841 to your computer and use it in GitHub Desktop.
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 = "ogin_ok" | |
spec.version = "0.0.1" | |
spec.authors = ["t.oginogin"] | |
spec.email = ["[email protected]"] | |
spec.summary = "return ok" | |
spec.files = ["ogin_ok.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
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