hubot-slack-blacklist-middleware
v1.0.2
Published
Add ability to blacklist channels in slack.
Readme
Hubot Slack Blacklist
Copied and reversed from Michael Davis' Hubot Slack Whitelist
Don't want #general to trigger your bot?
Use this.
How to use
Install
npm install --save hubot-slack-blacklist-middlewareRegister
In external-scripts.json add
"hubot-slack-blacklist-middleware"This is meant for slack, but will work with any adapter that exposes the current channel via context.response.envelope.room.
Environment Variables
There are two ways to set a blacklist:
Environment Variable | Description | Example
--- | --- | ---
HUBOT_BLACKLIST | A comma separated list (no spaces). | random,general
HUBOT_BLACKLIST_PATH | Set the path (relative to your hubot directory) to a json/js/coffee file that returns an array of blacklisted channels. | blacklist.json
