This is a simple Bolt app which runs on Cloud Functions for Firebase.
Use node 12.x and its corresponding npm.
cp _firebaserc .firebaserc
vi .firebaserc # set your own project
npm install -g firebase-tools
firebase login
firebase functions:config:set slack.signing_secret=xxx
firebase functions:config:set slack.bot_token=xoxb-111-111-xxxcd functions
npm i
cd -
firebase functions:config:get > .runtimeconfig.json
firebase servefirebase deploy- Set
https://{your domain}.cloudfunctions.net/slack/eventsas the Request URL for/echo-from-firebaseslash command. - Add
commands,chat:writescopes - Install the app to your development workspace
You have nothing to configure. Don't forget enabling the billing info if it's your first time to use it.
- Go the development Slack workspace
- Invite the bot user to a channel
- Run
/echo-from-firebasein the channel - Verify the bot replies to you - You said "xxx"
The MIT License