Skip to content

michaeljacobdavis/hubot-slack-whitelist-middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 Variable Description Example
HUBOT_WHITELIST A comma separated list (no spaces). random,general
HUBOT_WHITELIST_PATH Set the path (relative to your hubot directory) to a json/js/coffee file that returns an array of whitelisted channels. whitelist.json

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published