Skip to content

ttskch/slack-cron

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

slack-cron

Build Status

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

Deploy

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

image

4. Invite your Bot to the channel

image
image

Usage

image
image
image
image
image
image

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.

About

cron style message scheduling for slack

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published