An open API service indexing awesome lists of open source software.

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

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