Requires git
, nodejs
and npm
to be installed
$ git clone git@github.com:itdagene-ntnu/itbot.git
$ cd itbot
$ npm install
Add all users, with associated roles and slack id to lib/members.json
, using the format below. The scripts will then find the users based on roles.
[
{
"name": "username",
"slack": "slackid",
"role": "role"
}
]
HUBOT_SLACK_TOKEN
API token from slack hubot integration
$ HUBOT_SLACK_TOKEN=HUBOT_SLACK_TOKEN ./bin/hubot --adapter slack
All supported scripts are located in scripts/
-
@noen
located inrandom.js
-
@<role>
located inroles.js
-
@<role> some text @<another role>
located inroles.js
-
itbot roles
located inroles.js
-
@all
located inall.js
-
@ping
located inping.js
-
itbot help
located inhelp.js