1.0.0 • Published 8 years ago

hubot-telegram-user-whitelist-middleware v1.0.0

Weekly downloads
1
License
apache-2.0
Repository
github
Last release
8 years ago

Hubot Telegram User Whitelist

If you use the hubot telegram adapter but you do not want make your bot available to the public.

Use this.

How to use

Install

npm install --save hubot-telegram-user-whitelist-middleware

Register

In external-scripts.json add

"hubot-telegram-user-whitelist-middleware"

This is meant for telegram, but will work with any adapter that exposes the current user via context.response.message.user.name.

Environment Variables

To set the whitelist use the following environment variable:

Environment VariableDescriptionExample
HUBOT_WHITELISTA comma separated list (no spaces).john,mike
1.0.0

8 years ago