slack-cron

cron style message scheduling for slack

MIT License

Stars
15

slack-cron

cron style message scheduling for slack

Getting started

1. Create Bot and Slash Command on Slack

This app needs both of Bot and Slash Command.

Create them from here: https://{your-team}.slack.com/apps/manage/custom-integrations

2. Deploy to your heroku

Following 2 envvars are required.

  • SLACK_BOT_TOKEN
  • SLACK_SLASH_COMMAND_TOKEN

3. Add job for Heroku Scheduler

slack-cron automatically installs Heroku Scheduler on the first deploying to your heroku.

To keep Heroku awake, you should add a job like following for Every 10 minutes.

curl -s -d "" {your-app-name}.herokuapp.com >/dev/null 2>&1

4. Invite your Bot to the channel

Usage

In detail

  • add can be aliased new.
  • list can be aliased ls or show.
  • remove can be aliased rm, delete or del.
  • See the documentation of Message Formatting to learn about that.