A simple bot to notify a Slack channel when it's time to pick up your child at school!
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
src
.eslintrc.js
.gitignore
.travis.yml
LICENSE
Procfile
README.md
_config.yml
config.json
package-lock.json
package.json

README.md

leo-bot

A very simple bot based on Botkit to notice you when it's time to pick up your child at school!

Slack screen capture

Installation

npm install

Slack token

You need to set an environment variable:

export SLACK_BOT_TOKEN="xoxb-XXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXXXXXXX"

You'll find SLACK_BOT_TOKEN at https://my.slack.com/apps/A0F7YS25R-bots.

Slack channels

The bot daily message is sent to:

  • #test-bot channel on debug mode
  • #leo channel on production mode

Usage

# Served with hot reload (+ ESLint verification).
npm run dev

# Run ESLint to check if code respects it's syntax.
npm run lint

# Start server in production environment.
npm run start

Supported commands

Just ask help to @leo-bot.

Deploy

Heroku

heroku create --buildpack https://github.com/heroku/heroku-buildpack-nodejs.git
heroku config:set SLACK_BOT_TOKEN=xoxb-XXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXXXXXXX
heroku config:set TZ=Europe/Paris
heroku ps:scale web=0 worker=1

Development

This project uses ESLint for its syntax. You should read some documentation before.

License

leo-bot is a free software distributed under the terms of the MIT license.

Copyright (c) Arnaud Ligny