https://github.com/seratch/send-it-later-for-slack
Send It Later for Slack users
https://github.com/seratch/send-it-later-for-slack
Last synced: 11 months ago
JSON representation
Send It Later for Slack users
- Host: GitHub
- URL: https://github.com/seratch/send-it-later-for-slack
- Owner: seratch
- License: mit
- Created: 2021-02-22T15:13:07.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-12T02:37:00.000Z (over 5 years ago)
- Last Synced: 2025-03-24T04:22:29.763Z (over 1 year ago)
- Language: Python
- Homepage: https://j.mp/send-it-later
- Size: 12.7 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### Demo

### Slack App Settings
* App Home
* Enable Home Tab
* Interactivity & Shortcuts
* Message shortcut (callback_id: `send-this-message-later`)
* Events API
* Bot events
* `app_home_opened`
* `app_uninstalled`
* Events on behalf of users
* `token_revoked`
* OAuth & Permissions
* Bot Token Scopes
* `commands`
* `users:read`
* User Token Scopes
* `chat:write`
* `users:read`
* Redirect URLs
* `https://{your domain}/slack/oauth_redirect`
* Beta Features
* Opt into `timepicker`
### Local dev
```bash
cp _env .env # and then, edit it
docker-compose up --build
docker-compose exec web python ./db_migration.py
ngrok http 3000 # for OAuth flow
```
### Heroku Deployment
```bash
heroku create
heroku addons:create heroku-postgresql:hobby-dev
aws s3 cp initial.dump s3://{your bucket}/initial.dump
aws s3 presign s3://{your bucket}/initial.dump
heroku pg:backups:restore ${presign url} DATABASE_URL
heroku config:set SLACK_CLIENT_ID=
heroku config:set SLACK_CLIENT_SECRET=
heroku config:set SLACK_SIGNING_SECRET=
heroku config:set SLACK_SCOPES=commands,users:read
heroku config:set SLACK_USER_SCOPES=chat:write,users:read
git add . -v
git commit -m'initial'
git push heroku main
```