Skip to content

Instantly share code, notes, and snippets.

@adamjleonard
Created February 12, 2018 02:32
Show Gist options
  • Save adamjleonard/db1e98ac5452832a89948bd03e0f62fa to your computer and use it in GitHub Desktop.
Save adamjleonard/db1e98ac5452832a89948bd03e0f62fa to your computer and use it in GitHub Desktop.
require ‘slack-ruby-bot’
class HelloWorldBot < SlackRubyBot::Bot
command ‘hello’ do |client, data, match|
  client.say(text: ‘world!’, 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