1.0.6 • Published 3 years ago

node-slack-events v1.0.6

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Node Slack Events

This node module helps you listen to events from Slack's Event API

Installation

npm i node-slack-events

Examples

const http = require('http');
const slackWebhook = require('node-slack-events');

const server = http.createServer();

const webhookHandler = slackWebhook({ path: '/webhook' }, server);

// Listen for specific event
webhookHandler.on('message', (event) => {
  console.log(event);
});

// Listen for all events
webhookHandler.on('*', (event) => {
  console.log(event);
});

server.listen(3005, () => {
  console.log('Server is running.');
});
1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago