Created
February 12, 2018 02:32
-
-
Save adamjleonard/84144be50ed0db690411070823087ef1 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
require ‘slack-ruby-bot’ | |
class HelloWorldBot < SlackRubyBot::Bot | |
match /greet ([A-Za-z]*)/ do |client, data, match| | |
client.say(text: “Hello #{match[1]}”, channel: data.channel) | |
end | |
end | |
HelloWorldBot.run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment