Skip to content

Instantly share code, notes, and snippets.

@neilbartley
Last active August 29, 2015 14:20
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 neilbartley/21d1d6e1d4ffb09700c9 to your computer and use it in GitHub Desktop.
Save neilbartley/21d1d6e1d4ffb09700c9 to your computer and use it in GitHub Desktop.
Sending notifications to Slack using BespokeSlackbotService
Loading development environment (Rails 4.0.9)
2.0.0-p598 :001 > BespokeSlackbotService.new.clicky_clicky('Clicky Clickerson','no','more','emails').deliver
=> #<Net::HTTPOK 200 OK readbody=true>
2.0.0-p598 :002 > BespokeSlackbotService.new('#different_channel').clicky_clicky('Clicky Clickerson','no','more','emails').deliver
=> #<Net::HTTPOK 200 OK readbody=true>
2.0.0-p598 :003 > BespokeSlackbotService.new('@a_user').clicky_clicky('Clicky Clickerson','no','more','emails').deliver
=> #<Net::HTTPOK 200 OK readbody=true>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment