1.0.1 • Published 9 years ago

hubot-slack-whitelist-middleware v1.0.1

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

Hubot Slack Whitelist

Don't want #general to trigger your bot?

Use this.

How to use

Install

npm install --save hubot-slack-whitelist-middleware

Register

In external-scripts.json add

"hubot-slack-whitelist-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 whitelist:

Environment VariableDescriptionExample
HUBOT_WHITELISTA comma separated list (no spaces).random,general
HUBOT_WHITELIST_PATHSet the path (relative to your hubot directory) to a json/js/coffee file that returns an array of whitelisted channels.whitelist.json
1.0.1

9 years ago

1.0.0

9 years ago