Quick hack of a slack app to run a rotation of people. Installs a command /rotate
which lets you set
a rotation, run next
to iterate through people, and view the current
status of the rotation.
- Visit https://brotate-707ca.firebaseapp.com/
- Request / authorize the app for a specific channel
- Clone the repo
- Open your favorite editor (perhaps VS Code?)
- Ensure you have the
npm
packagefirebase-tools
installed globally - Run the following from a command prompt to set private configuration variables for your Slack App listing (replace any $token with your actual configuration value):
firebase functions:config:set slack.id=$SLACK_ID
firebase functions:config:set slack.secret=$SLACK_SECRET
firebase functions:config:set slack.token=$SLACK_TOKEN
cd
to thefunctions
directory- Run
npm install
- To deploy, run
firebase deploy