COBOT_ROOT
- absolute path of the project root.COBOT_PREFIX
- prefix to use for issuing bot commands.BOT_ADMINS
- Admins of the errbot instance.ROOMS
- Space separated list of rooms to join on startup. e.g.ROOMS="coala/coala coala/coala/corobo"
BACKEND
- Backend to use, default is Gitter.GH_TOKEN
- GitHub personal access token to create issues, invite people to org, assign and unassign issues, etc. - Mandatory for LabHub to work for GitHub.GL_TOKEN
- GitLab personal access token to create, assign, unassign issues, etc. - Mandatory for LabHub to work for GitLab.GH_ORG_NAME
- Name of github organization - Mandatory for LabHub GitHubGL_ORG_NAME
- Name of gitlab organization - Mandatory for LabHub GitLabWA_TOKEN
- wolframalpha APP_ID to access wolfram API.IGNORE_USERNAMES
- space separated list of usernames to ignore messages from.
ANSWER_END
- Endpoint ofanswers
microservice(inanswers/
directory). It is exposed at port8000
.
- Install the dependencies
pip install -r requirements.txt
- Set environment variables
COBOT_ROOT
,COBOT_TOKEN
to the path of corobo repo and gitter token for cobot. Set other environment variables mentioned above if required - Run errbot:
cd COBOT_ROOT && errbot
- Grab the image
docker pull meetmangukiya/corobo
- Run the image :D:
docker run --rm -e COBOT_TOKEN="this-is-chatbot-token" \ -e COBOT_PREFIX="gitmate" \ -e BOT_ADMINS="sils meetmangukiya" \ -e BACKEND="Slack" \ -e GH_TOKEN="this-is-the-bots-github-token" \ -e GL_TOKEN="this-is-the-bots-gitlab-token" \ -e GH_ORG_NAME="gitmate" \ -e GL_ORG_NAME="gitmate" \ meetmangukiya/corobo
There are a few plugins that may be coala specific. But we are working on making it more configurable and adaptable for other orgs.