-
Notifications
You must be signed in to change notification settings - Fork 15
Adding a room to butler bot
languantan edited this page Feb 23, 2019
·
2 revisions
- 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].
- Append the new Calendar ID so butler knows which calendar to update.
#<path-to-butler-bot>/.env
CALENDAR_ID={
...
,"bb": "[email protected]"
}
- 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.