1.0.2 • Published 9 years ago

hubot-slack-blacklist-middleware v1.0.2

Weekly downloads
31
License
MIT
Repository
github
Last release
9 years ago

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-middleware

Register

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 VariableDescriptionExample
HUBOT_BLACKLISTA comma separated list (no spaces).random,general
HUBOT_BLACKLIST_PATHSet the path (relative to your hubot directory) to a json/js/coffee file that returns an array of blacklisted channels.blacklist.json
1.0.2

9 years ago

1.0.1

9 years ago