slack-cron
slack-cron copied to clipboard
cron style message scheduling for slack
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_TOKENSLACK_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
addcan be aliasednew.listcan be aliasedlsorshow.removecan be aliasedrm,deleteordel.- See the documentation of Message Formatting to learn about that.