slack /open-xxx from inventory-app
This commit is contained in:
13
README.md
13
README.md
@@ -34,3 +34,16 @@ docker-compose -f docker-compose.yml up --build
|
||||
|
||||
On kdoorpi override `KDOORPI_API_ALLOWED`, `KDOORPI_API_LONGPOLL` environment variables
|
||||
to redirect requests to your dev instance.
|
||||
|
||||
# Slack bot
|
||||
1. https://api.slack.com/apps → Create new app → From scratch
|
||||
1. Verification Token as `SLACK_VERIFICATION_TOKEN`
|
||||
1. App home → Bot user
|
||||
- `commands`
|
||||
- `users:read`
|
||||
<!-- `users:read_email` -->
|
||||
<!-- `channel:read` -->
|
||||
<!-- `groups:read` -->
|
||||
<!-- `incoming-webhook` -->
|
||||
1. Add commands. Request URL `https://doorboy-proxy.k-space.ee/slack-open`
|
||||
1. Incoming Webhooks → assign to channel -> Webhook URL as `SLACK_DOORLOG_CALLBACK`
|
||||
|
Reference in New Issue
Block a user