Skip to content

slacky-bot/slacky-middleware-white-black-list

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slacky Middleware for Blacklisting and Whitelisting Channels and Groups

Use

const whitelist = require('slacky-middleware-white-black-list').whitelist;
const blacklist = require('slacky-middleware-white-black-list').blacklist;
const token = process.env.SLACK_API_TOKEN;

bot.use(whitelist(['channel', 'group'], new WebClient(token)));
// OR
bot.use(blacklist(['general'], new WebClient(token)));

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published