- Lightsail:
Freshworks-SlackApps
- Click on
connecting ssh
## cd to the root folder
$ cd slack-apps/freshworks-fresh_times-counter
## if you have new update (and make sure you update git remote url, as it's currently pointing to my repo)
$ git pull
- Update to new docker image (under
slack-apps/freshworks-fresh_times-counter
)
## Stop and remove container
$ docker stop freshtimes
$ docker rm freshtimes
## Build new image
$ docker build -t freshtimes .
$ docker run -d -p 8888:8888 --name freshtimes freshtimes
- Adding scope in OAuth & Permissions
https://api.slack.com/methods/users.list
https://api.slack.com/methods/conversations.history
https://api.slack.com/methods/conversations.members
- open the port 8888
https://scotch.io/tutorials/create-a-custom-slack-slash-command-with-nodejs-and-express
- Add file
.env
cp .env-example .env
API_TOKEN= // Under OAuth Permission, OAuth Access Token
SLACK_BOT_TOKEN= // Under OAuth Permission, Bot User OAuth Access Token
SLACK_SIGNING_SECRET= // Under Basic Information
PORT= // whatever you want the port
- Add
chat:write
to the bot scope
- Add path
/slack/events
toRequest URL
underSlash Commands
.