Automatically update your Slack status if your Google Calendar says that you are off today
Repository Cargo Documentation Download
Automatically update your Slack status if your Google Calendar says that you are off today.
⚠️ Main repository is here: https://gitlab.com/dsferruzza/sorry-im-off-today ⚠️
sorry-im-off-today
executableYour Google calendar will be fetched, parsed and searched for events beginning by Absent
or Congés
.
If such an event exists today, your Slack status will be updated.
Configuration is done using environment variables:
Name | Default Value | Description |
---|---|---|
CALENDAR_URL |
The private URL of a Google calendar. For example: https://calendar.google.com/calendar/ical/xxxxx%40gmail.com/private-xxxxx/basic.ics . |
|
SLACK_API_TOKEN |
A Slack access token. You need to create an app with the users.profile:read and users.profile:write scopes and add it to your Slack workspace. The OAuth token required here starts with xoxp . |
Configure a Cron or a Systemd timer to run it every day (early in the morning) !
MIT License Copyright (c) 2019 David Sferruzza