- Node.js v10.15.0 or higher
Run Bolt app
$ export TIMETREE_PERSONAL_TOKEN=XXXXXXXXXXXXX
$ export SLACK_SIGNING_SECRET=XXXXXXXXXXXXX
$ export SLACK_BOT_TOKEN=XXXXXXXXXXXXX
$ npm install
$ npm run start
Run ngrok to publish globally
$ ngrok http 3000
App Endpoint: http://xxxxxxx/slack/events/
Visit Slack API - Your Apps
-
Click [Create New App] to create a new app
-
SLACK_SIGNING_SECRET: [Basic Information] -> [App Credentials] -> [Signing Secret]
-
In [Bot Users], add a new bot
-
SLACK_BOT_TOKEN: [Install Apps] -> [Bot User OAuth Access Token]
-
[Slash Commands] -> [Create New Command] ([Request URL] should be like "http://xxxxxxx/slack/events/")
$ cp secret.example.yaml secret.yaml
$ gcloud app deploy