Skip to content

Instantly share code, notes, and snippets.

@treeder
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save treeder/94fe0ee5072d8c4d396e to your computer and use it in GitHub Desktop.
Save treeder/94fe0ee5072d8c4d396e to your computer and use it in GitHub Desktop.
Slack hellobot
require_relative 'bundle/bundler/setup'
require 'iron_worker'
require 'slack_webhooks'
sh = SlackWebhooks::Hook.new('hellobot', IronWorker.payload, IronWorker.config['webhook_url'])
text = "Hello #{sh.user_name}!"
sh.send(text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment