Skip to content

A simple bot that manages shared Google Calendar

License

Notifications You must be signed in to change notification settings

itomych/calendarbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CalendarBot

A simple bot that manages shared Google Calendar

We need a bot that would manage our GCal user for a meeting room. The bot checks GCal with some configurable interval and accepts or declines upcoming events depending on the conflicts

Installation

  1. Follow the Google Calendar API Go guide to setup your project and get credetials. Save the credentials to client_credentials.json in src folder.

  2. Create config.yaml in the root folder like this sample:

email: meetingroom@mydomain.com
checkinterval: 60
  1. Build Docker container docker build -t itomychstudio/calendarbot .

  2. First run should be done in the interactive mode to get the token from Google OAuth2 docker run -it --name calendarbot itomychstudio/calendarbot:latest

  3. Afterwards, you can run the container in the detached mode docker run -d --name calendarbot --restart always itomychstudio/calendarbot:latest.

If you cannot run the container in the interactive mode, run the app locally and copy the ~/.credentials/itomych-calendar-bot.json file to the root folder of the project. It will be automatically copied to the container on docker build.

Releases

No releases published

Packages

No packages published