This is a Slack app built with the Bolt for JavaScript framework.
# Replace with your signing secret and token
export SLACK_BOT_TOKEN=<your-bot-token>
export SLACK_SIGNING_SECRET=<your-signing-secret>
# Clone this project onto your machine
git clone https://github.com/posaune0423/boltjs-slack-bot
# Change into the project
cd boltjs-slack-bot/
# Install the dependencies
yarn install
Setup ngrok to create a local requests URL for development.
yarn ngrok
yarn start
yarn gcf
gcloud functions deploy slack \
--runtime nodejs10 \
--trigger-http \
--set-env-vars "SLACK_BOT_TOKEN=<your-bot-token>,SLACK_SIGNING_SECRET=<your-signing-secret>" \
--allow-unauthenticated
- End point should be like below
https://<your-region>-<your-project-name>.cloudfunctions.net/slack/events