WFH Slackbot
How to run locally
npm install
- Create a
functions/.runtimeconfig.json
with this structure (ask Auther for token)
{
"slack": {
"coffeehoused": {
"token": "<SLACK-TOKEN>"
}
}
}
- Install ngrok and run
ngrok http 5000
- Change the slackbot command url to your ngrok url +
wfh-slackbot-a39c5/us-central1/coffeeBreak
firebase emulators:start
in the functions folder (need firebase tools installed globally npm -i -g firebase-tools
)
npm run dev
seperately in the functions folder
- Triggering a slack command should then go: -> ngrok -> localhost:5000 (cloud function) -> express app