slacky-middleware-white-black-list

### API

Usage no npm install needed!

<script type="module">
  import slackyMiddlewareWhiteBlackList from 'https://cdn.skypack.dev/slacky-middleware-white-black-list';
</script>

README

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