Sync Google Calendar to Slack your status
- Fork this project.
- Setting gapps
- Set your Configurations.
- Generate the Slack token Legacy token generator
- Set script properties. Browse your project -> File -> Project properties -> Script properties
- Add
CALENDAR_ID
property. Set value to your Email. e.g. example.gmail.com - Add
SLACK_TOKEN
property. Set value to Slack token. - Save
- Add
- Set trigger. Edit -> Project trigger
- Select onEvent
- Select minutes timmer and Select per 1minute or per 5minute.
recommended
- If you using CircleCI, Connect CircleCI
https://circleci.com/add-projects/gh/YOUR_ORG
- Add project's Environment Variables
- Name: gapps, Value: ~/.gapps file body. e.g.
{"client_id": "477513152433-....apps.googleusercontent.com", "client_secret": "1EBL0NLBE3L...", "redirect_uri": "urn:ietf:wg:oauth:2.0:oob", "refresh_token": "1/-1hLM6J...pc31krQ4OylDs-M"}
- Name: gapps_config, Value: ./gapps.config.json e.g.
{"path": "src", "fileId": "1iiKQdAio0...dCj8WDpbLb"}
- Name: gapps, Value: ~/.gapps file body. e.g.
- Add project's Environment Variables
- Edit dict.json.
- regexp set patterns. e.g.
vacation|dont work|day off
status_emoji
set emoji. You can use Custom Emojistatus_text
set your status.
- regexp set patterns. e.g.
- Push to github, or build and deploy your local machine.
If you using CircleCI. It is not necessary local build and deploy.
yarn build
yarn deploy