Create associated Google Calendar
- Using the Google account
USER_ID
in your .env
file, login to create a New Calendar.
- Name the calendar [Level#] . e.g. [L8] Bumblebee.
- Click Create. Click on Configure to see details of the calendar.
- Make the calendar public.
- Share the calendar with the service account
SERVICE_ACCT_ID
specified in your .env
file.
- Take note of the Calendar ID: e.g. [email protected].
Add Calendar to Butler-Bot config.
- Append the new Calendar ID so butler knows which calendar to update.
- Update butler to show new options in the telegram bot
//<path-to-butler-bot>/config/settings.js
const ROOM_CONFIG = {
roomsOpenForBooking: { // '/book' option in telegram
'bb': { 'command': '/book_bb', 'text': '[L8] Bumblebee' },
},
roomsListing: { // '/any' option in telegram
'bb': { name: 'Bumblebee [Level 8] (6 pax)', id: 'bb' }
}
}
- Restart the bot.