Sign inSign up

mtgto/crowdbot

By mtgto

•Updated about 7 years ago

Crowdbot - A Slack bot integrate with Atlassian crowd

Image
0

910

mtgto/crowdbot repository overview

⁠Crowdbot - A Slack bot integrate with Atlassian crowd

dockerhub

⁠Feature

This bot supports management of groups of Atlassian crowd.

  • Show crowd groups which you belong to.
  • Show the members which belong to group.
  • (Only admin) Create a new group.
  • (Only admin) Add user(s) to Crowd group.
  • (Only admin) Remove user(s) from Crowd group.

⁠Setup

⁠1. Create a new Crowd application
  • Add permissions Add group and Modify group.
  • Set remote addresses.
⁠2. Create a Slack bot

Create a bot and get token at https://my.slack.com/services/new/bot⁠ .

⁠3. Launch
⁠3-a. at local

example:

$ yarn install

Example (change it to your crowd account and slack token)

$ CROWDBOT_LANG=en \
CROWD_BASE_URL=https://crowd.example.com/ \
CROWD_APPLICATION=crowdbot \
CROWD_PASSWORD=secret \
SLACK_BOT_TOKEN=xoxo-xxx-xx-xx-xxxx \
SLACK_ADMIN_IDS=U123456,U23456 \
node .
⁠3-b. at Docker

https://hub.docker.com/r/mtgto/crowdbot/⁠

Example (change it to your crowd account and slack token)

docker run -e CROWDBOT_LANG=en \
-e CROWD_BASE_URL=https://crowd.example.com/ \
-e CROWD_APPLICATION=crowdbot \
-e CROWD_PASSWORD=secret \
-e SLACK_BOT_TOKEN=xoxo-xxx-xx-xx-xxxx \
-e SLACK_ADMIN_IDS=U123456,U23456 \
-d --name crowdbot mtgto/crowdbot

When stop:

docker stop crowdbot

⁠Configuration

All configuration is set by environment variables.

NameDescriptionExample
CROWDBOT_LANGMessage locale.
You can choose between "en" or "ja" (default "en").
"en" (or empty)
CROWD_BASE_URLCrowd URLhttps://crowd.example.com/⁠
CROWD_APPLICATIONCrowd Applicaton name.
We highly recommend not to use "crowd".
"crowdbot"
CROWD_PASSWORDCrowd application's password. This is NOT admin password."secret"
SLACK_BOT_TOKENSlack token string.xoxo-xxx-xx-xx-xxxx
SLACK_ADMIN_IDSSlack ids of Crowd administrators which have authorization to add/remove user and create a crowd group.
Multiple users can be defined join by comma.
U123456,U23456

⁠License

This software is released under the MIT License, see LICENSE.

Tag summary

Content type

Image

Digest

Size

32.1 MB

Last updated

about 7 years ago

docker pull mtgto/crowdbot