slwen / robocoop

A slackbot to keep us in line
0 stars 0 forks source link

screenshot

Commands

Robocoop listens for these commands:

  • new challenge [amount] [exercise] by [day] in sets of [reps]
  • end the challenge
  • remind [daily/hourly/half-hourly/never]
  • I did [amount]
  • Undo [amount]
  • leaderboard
  • status
  • help

Requirements

Running locally

Start redis

Run with no extra config. Use redis-cli to interact and monitor.

$ redis-server # start the redis server

Environment variables

You should have an API token from Slack. Set in your environment:

$ TOKEN=your-slack-api-token-here

Start the node app

The application uses nodemon and will auto-restart when you make changes.

$ npm install
$ npm run dev