Skip to content

Latest commit

 

History

History
53 lines (34 loc) · 971 Bytes

README.md

File metadata and controls

53 lines (34 loc) · 971 Bytes

Slack bot for itdagene

Install

Requires git, nodejs and npm to be installed

$ git clone [email protected]: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"
  }
]

Environment variables

HUBOT_SLACK_TOKEN API token from slack hubot integration

Deploy

$ HUBOT_SLACK_TOKEN=HUBOT_SLACK_TOKEN ./bin/hubot --adapter slack

Scripts

All supported scripts are located in scripts/

  • @noen located in random.js

  • @<role> located in roles.js

  • @<role> some text @<another role> located in roles.js

  • itbot roles located in roles.js

  • @all located in all.js

  • @ping located in ping.js

  • itbot help located in help.js