YIDAO bot is a learning project to familiar with slack apps!
This is a lightweight bot that can handle translate to english and calcualte number.
To translate :
/trans-to-en 一些非英语国家的语言
To calculate number :
/calculate 5 * 40 + 80 / 2
- CLIENT_ID //
the slack app client_id
- CLIENT_SECRET //
the slack app client_secret
- GOOGLE_APPLICATION_CREDENTIALS //
the google api key json location
- projectId //
the google translate project id
npm install
npm start
Clicking this link to authorize the app for your team.
The Slack App Documentation is a great resource here.