This is an app built using Node.js and Slack API that allows users to set their profiles to OOO for a specified period of time and set it back to normal.
- Node
- ngrok
- Yarn/node
- Slack app
- Slack API User and Bot tokens
- clone this repo
- create a slack app through https://api.slack.com/
- create a .env file from .sample.env
- run the node app using
yarn start:dev
- run ngrok to expose the local url with
./ngrok http 3000
- add the ngrok url to the slack slash command and the interactive component
- install the slack app in your preferred worspace
Endpoints | Method | Description |
---|---|---|
/ | POST | responds with a slack welcome message block |
/slack-interactive | POST | cancels or sets OOO profile (slash command route) |
App hosted on Google Cloud Platform Make requests to https://slack-ooo-gcp.ew.r.appspot.com
(to be added)
To install the app on your slack workspace visit https://njeri-ngigi.github.io/slack-set-ooo-profile/