Skip to content

DanHulton/slacksimple

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published