Slackhook
The only module you'll need for custom hooks that integrate with Slack.
Installation
npm install slackhook
Requirements
You'll need a domain and token from Slack.
The domain will be the organisation part of <organisation>.slack.com
The token is given to you when you create your incoming webhook integration.
Usage
var Slackhook = ;var slack = domain: 'yourdomain' token: 'yourtoken';
Sending
You can set up incoming webhooks here
slack;
You can pass the send
method a callback if you like.
slack;
Responding
You can also respond to webhooks coming from Slack. You could use this to make a chat bot etc.
You can set up outgoing webhooks here
This example assumes you're running inside an Express.js route.
app;
Example apps
License
MIT