This app uses the Bolt for Slack framework and Google Firebase.
- Create an app on Slack
- Enable
Home TabandMessages TabinApp Home - Enable
Interactivity & Shortcutsand enter yourRequest url - Add shortcuts
Send a stickerof typeGlobaland callback IDsticker:shortcutReply with stickerof typeMessageand callback IDsticker:respond
- Add a Slash command
/stickers - Enable
Event Subscription
- Subscribe to
Bot Events:app_home_opened,message.im
- Add
Bot Token ScopesinOAuth & Permissions
chat:writecommandsfiles:readim:historyim:writereactions:write
- Enable distribution under
Manage Distributionand enter yourRedirect url
- Create a new Firebase project
- Enable
Firestore - Enable
Storage - Create a
Service AccountunderProject Settings
- Install dependencies via
npmoryarn - Create a
.envfile and with following keys
SLACK_SIGNING_SECRET=<your Slack app's signing secret>SLACK_CLIENT_ID=<your Slack app's client id>SLACK_CLIENT_SECRET=<your Slack app's client secret>SLACK_REDIRECT_URL=<your redirect url>SLACK_API_URL=https://slack.com/apiFIREBASE_SERVICE_ACCOUNT=<path to your firebase service account key>FIREBASE_STORAGE=<your firebase storage bucket>FIREBASE_DATABASE=<your firstore url>