Calendar? (gmail/outlook)

Tips and questions about scripting your Verbot®.

Moderator: Staff

Calendar? (gmail/outlook)

Postby Jishk » Mon Jul 25, 2011 3:28 am

Has anyone gotten verbot to read gmail or outlook calendars? Any ideas on how it can be done? Any ideas on how it can be done?

Here's an example...

Currently, my verbot wakes me up in the morning (used that 'at' command to send '&wakeup')

"Time to wake up! The current time is 7:00 am."

What I would like to do:

"Time to wake up! The current time is 7:00 am. You have one hour and forty minutes before you are scheduled to leave for work."
Jishk
ChatterBot
ChatterBot
 
Posts: 27
Joined: Mon Jun 07, 2010 3:28 am
Location: GA

Postby JonC » Wed Jul 27, 2011 7:51 pm

Would you be kind enough to detail the command you are using.
I may have missed this in the forum somewhere, but I don't recognise it.
JonC
SupremeBot
SupremeBot
 
Posts: 665
Joined: Wed Apr 02, 2008 6:34 am
Location: Leicestershire, Great Britain

Postby Jishk » Wed Jul 27, 2011 11:41 pm

My bad, it's SCHTASKS in windows 7. The command looks something like this:


SCHTASKS /CREATE /TN WAKEUP /SC DAILY /RU USERNAME /RP PASSWORD /ST 18:50 /ET 19:01 /IT /TR "C:\Users\USER\AppData\Roaming\Verbot5\main\Verbot5Engine.exe --input
='&wakeup'"

It's much simpler in Windows XP, but unfortunately the disabled the ability for tasks schedule with 'AT' to be run interactively. Anyway, the XP command looks something like this:

AT 07:00 "C:\Users\USER\AppData\Roaming\Verbot5\main\Verbot5Engine.exe --input
='&wakeup'"
Jishk
ChatterBot
ChatterBot
 
Posts: 27
Joined: Mon Jun 07, 2010 3:28 am
Location: GA

Postby JonC » Fri Jul 29, 2011 4:26 pm

Ah, I see.
You are usung the command start up the Verbot to start it up at that time every day.
This input is just like any other in its operation, so you can structure the "triggered rule" how you like.
I'm guessing here, but I'd guess you've got a rule called "&wakeup" in your KB that is fired exclusively by your startup input:
Verbot5Engine.exe --input='&wakeup'"
Thus you can use multiple outputs for the rule to get a variety of responses.
If you want, there is no reason why you could not <send...> to other rules either.
(Several threads here involve the Verbots "mood" for instance.)
In short, just edit the "&wakeup" rule like any other in the Verbot editor.
JonC
SupremeBot
SupremeBot
 
Posts: 665
Joined: Wed Apr 02, 2008 6:34 am
Location: Leicestershire, Great Britain


Return to Scripting

Who is online

Users browsing this forum: No registered users and 1 guest

cron