Assign roles to users and restrict command access in other scripts.
See src/auth.coffee
for full documentation.
Add hubot-auth to your package.json
file:
"dependencies": {
"hubot": ">= 2.5.1",
"hubot-scripts": ">= 2.4.2",
"hubot-auth": ">= 0.0.0",
"hubot-hipchat": "~2.5.1-5",
}
Add hubot-auth to your external-scripts.json
:
["hubot-auth"]
Run npm install
user1>> hubot user2 has jester role
hubot>> OK, user2 has the jester role.