The only module you'll need for custom hooks that integrate with Slack.
npm install slackhook
You'll need a domain and token from Slack.
The domain will be the organisation part of
The token is given to you when you create your incoming webhook integration.
var Slackhook = ;var slack =domain: 'yourdomain'token: 'yourtoken';
You can set up incoming webhooks here
You can pass the
send method a callback if you like.
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.