Contents

Support Managers

Xartashah
English
online
Aerielle Kiyori
English
offline
show offline managers  
English, Hindi, Russian  

google_check_calendar (SBSL Command)

Have a question? Ask at SmartBots DevPortal!

DevPortal is a blog and forum for developers. Ask your questions to get a prompt reply!

Continue to DevPortal


This command queries your Google Calendar and receives today's events.

Syntax

google_check_calendar CALENDAR_ID TIME_FORMAT

Command parameters

The following table explain the entries of the command:

Entry Description
CALENDAR_ID the ID of your Google Calendar
TIME_FORMAT the time format, string:
  • AM/PM for 12-hours format
  • 24HR for 24-hours format

Comments

This command queries your Google Calendar and receives today's events. The text string is being composed using these events and saved to $google_result (you can send this text using im command).

Obtaining calendar ID

Important: your calendar should be shared to make it available. See the step-by-step instructions below open Your Google Calendar:

  1. Open calendar menu and choose "Share this Calendar":
    SBSL google check calendar-1.jpg
  2. Tick "Make this calendar public":
    1344609286-clip-7kb.png
  3. Then go to "Calendar Details" and copy "Calendar ID":
    SBSL google check calendar-3.jpg

Example

The following SBSL code sends your calendar to everyone who IMs the bot:

instant_message {
    google_check_calendar kr4na1de8h97lg8e2e5ejcjju4@group.calendar.google.com AM/PM
    im $speaker_name $google_result
}


<< return back to SBSL commands