This app uses the Bolt for Slack framework and Google Firebase.
- Create an app on Slack
- Enable
Home Tab
andMessages Tab
inApp Home
- Enable
Interactivity & Shortcuts
and enter yourRequest url
- Add shortcuts
Send a sticker
of typeGlobal
and callback IDsticker:shortcut
Reply with sticker
of typeMessage
and callback IDsticker:respond
- Add a Slash command
/stickers
- Enable
Event Subscription
- Subscribe to
Bot Events
:app_home_opened
,message.im
- Add
Bot Token Scopes
inOAuth & Permissions
chat:write
commands
files:read
im:history
im:write
reactions:write
- Enable distribution under
Manage Distribution
and enter yourRedirect url
- Create a new Firebase project
- Enable
Firestore
- Enable
Storage
- Create a
Service Account
underProject Settings
- Install dependencies via
npm
oryarn
- Create a
.env
file 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/api
FIREBASE_SERVICE_ACCOUNT=<path to your firebase service account key>
FIREBASE_STORAGE=<your firebase storage bucket>
FIREBASE_DATABASE=<your firstore url>