Skip to content

Latest commit

 

History

History
68 lines (52 loc) · 1.95 KB

README.md

File metadata and controls

68 lines (52 loc) · 1.95 KB

Nemesis

A Slack Bot that tracks the happiness of your team :) https://zamarrowski.github.io/nemesis/

Requirements:

Configuration

Open and edit nemesis.cfg with your slack info:

[slack]
token_bot_slack=SLACK_BOT_API_TOKEN
client_id=SLACK_CLIENT_ID
client_secret=SLACK_CLIENT_SECRENT

You can also configure another fields as mongodb user or what you want.

Open dashboard/src/config.js file and replace clientId with your clientId:

export default {
  baseService: 'http://localhost:8080',
  clientId: 'clientId'
}

If you are going to deploy with docker you should not change anything else.

Deploy with Docker

Execute docker-compose up in root directory. When docker-compose has finished you need to create a user in mongodb. If you have not modify the mongodb user in nemesis.cfg you would do something like this in the terminal (assuming you have installed mongodb client).

mongo
use nemesis
db.createUser({ user: "nemesis", pwd: "nemesis", roles: ["readWrite"] })

Modify Nemesis messages:

Open src/nemesis/common/constants.py and modify:

USER_STATUS = (
        (1, 'really bad :disappointed:'),
        (2, 'a bit down :pensive:'),
        (3, 'normal :neutral_face:'),
        (4, 'alright :slightly_smiling_face:'),
        (5, 'awesome :smile:')
)

How to contribute:

We love feedback so feel free to open issues (https://github.com/zamarrowski/nemesis/issues) or Pull Request.