This is a slack app boilerplate built with go for Cloud Functions.
Before you started, you need to set up gcloud command, and able to use Cloud Functions.
Go to https://api.slack.com/apps
, and create new app from scratch.
Go to your slack app dashboard. ex. https://api.slack.com/apps/FOOBAR
Then, go to Features > Slash Commands page, and create new command.
COMMAND: /hello
REQUEST URL: https://{YOUR GCP PROJECT ID}.appspot.com/slash
Short Description: This is a hello command.
Go to your slack app dashboard. Basic Infomation > Install you app.
cp .env.yaml.example .env.yaml
Set your SLACK_SIGINING_SECRET
.
You can see SLACK_SIGINING_SECRET
on your slack app dashboard. Basic Infomation > App Credentials
make deploy
/hello Bob
Slask says Bob
.