Last active
August 29, 2015 14:17
-
-
Save treeder/94fe0ee5072d8c4d396e to your computer and use it in GitHub Desktop.
Slack hellobot
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_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