Last active
December 17, 2016 10:30
-
-
Save zeero/358bab1251b738f680002a9e844af1df to your computer and use it in GitHub Desktop.
#ruboty #rubygems
This file contains hidden or 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 = "ruboty-helloworld" | |
spec.version = "0.0.2" | |
spec.authors = ["zeero"] | |
spec.email = ["[email protected]"] | |
spec.summary = "Hello world!" | |
spec.files = ["ruboty-helloworld.rb"] | |
spec.require_path = "." | |
end |
This file contains hidden or 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 HelloWorld < Base | |
on( | |
/hello/, | |
name: "hello", # method name | |
description: "Hello world!" # help description | |
) | |
def hello(message) | |
message.reply("Hello world!") | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment