forked from davidmoreno/behaviours
-
Notifications
You must be signed in to change notification settings - Fork 1
Example
David Moreno Montero edited this page May 22, 2013
·
1 revision

In this example we have three actions, one executed always that this behaviour start, other that can be triggered clicking over the box, and another executed everyday at 10am.
- Start calls a lua function beep(), and then calls the python function send_email().
- Click prints something to the LUA console.
- Everyday at 10 the bot says something (object bot, DIA plugin for AISoy1 robots), and the calls the python function send_email().
Normal state is waiting for some of these events to happen, if nothing happens, no action is performed. If some event happens it calls the relevant actions and if the execution path finishes, it goes back to wait for a spontaneous event to happen.