https://github.com/john-data-chen/slack_slash_commands_template
https://github.com/john-data-chen/slack_slash_commands_template
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/john-data-chen/slack_slash_commands_template
- Owner: john-data-chen
- Created: 2022-11-30T03:11:21.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-30T03:18:21.000Z (over 3 years ago)
- Last Synced: 2025-01-31T04:51:37.256Z (over 1 year ago)
- Language: Python
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Slack Slash Commands
this is a template of Slack Slash Commands bulit on Cloud Functions of Google Cloud Platform
## how to use it?
in slack, enter command such as: /command xxxx
## how to setup GCP cloud functions?
Environment: 2nd gen
Region: asia-east1 (because my office is in Taiwan, so choose this region, you can pick another region where your office is)
Trigger: HTTP, Allow unauthenticated invocations and require HTTPS
Runtime environment variables: add a variable to save SLACK_SIGNING_SECRET
Choose Code Runtime: Python 3.10
Entry point: example, modify by yourself
reference:
## how to fix timeout issue?
this issue can't be fixed, we only can set the max waiting time 3600 seconds in RUNTIME - Timeout settings.
After 1 hour of no activity, send a command to bot, it still returns a timeout error.
After bot's timeout error, it will work again in one hour