slacksimple

0.11.2 • Public • Published

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 });

Dependencies (4)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i slacksimple

    Weekly Downloads

    0

    Version

    0.11.2

    License

    ISC

    Unpacked Size

    30.8 kB

    Total Files

    15

    Last publish

    Collaborators

    • danhulton