slacksimple
v0.11.2
Published
Wrapper for Slack library.
Readme
Slacksimple
A wrapper for node-slack-sdk to make the common tasks easier.
Usage
Setup:
const Slacksimple = require('./slackwrapper');
const slack = new Slacksimple(botToken, appToken);
slack.connect();Sending a message (with typing indicator):
slack.sendTyping(channel);
slack.postMessage(channel, text, opts);Monitoring typed messages:
slack.connect({ onMessage: this.onMessage, bot: this });Responding to presence events:
slack.connect({ onClientPresenceChange: this.onClientPresenceChange, bot: this });