/slackbot

Testing slackbot

Primary LanguageJavaScript

Code Review Bot

Dev Setup

  1. Clone this repo, cd into it, & npm install
  2. Generate a github access token at https://github.com/settings/tokens
  3. Create a dev Slack token at https://api.slack.com/docs/oauth-test-tokens
  4. Copy config.json.example to config.json; put your Github and Slack tokens in it
  5. If you want to send messages to your dev environment from Slack, create or reuse a Slack slash-command, like /test-cr. Point the command at your dev server using ngrok or port forwarding.
  6. npm start
  7. In a Slack channel, you can now try /test-cr <github-url>

Tests

  1. npm test

Deploying

  1. Get the SB Digital Ocean key set up
  2. npm install pm2 -g
  3. pm2 deploy ecosystem.json production