Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I haven't tried the gadgets, but from the little I've looked at them, they seem pretty straight-forward. They're implemented in a template-ish way and you can easily keep states in them, allowing more complex things such as <a href="http://en.wiktionary.org/wiki/RSVP" rel="nofollow noreferrer">RSVP</a> lists and even games.</p> <p>Robots are what I'm most interested in, and well, all I can say is that they're really easy to develop! Like barely any effort at all! Heck, I'll code one for you right here:</p> <pre><code>import waveapi.events import waveapi.robot def OnBlipSubmitted(properties, context): # Get the blip that was just submitted. blip = context.GetBlipById(properties['blipId']) # Respond to the blip (i.e. create a child blip) blip.CreateChild().GetDocument().SetText('That\'s so funny!') def OnRobotAdded(properties, context): # Add a message to the end of the wavelet. wavelet = context.GetRootWavelet() wavelet.CreateBlip().GetDocument().SetText('Heeeeey everybody!') if __name__ == '__main__': # Register the robot. bot = waveapi.robot.Robot( 'The Annoying Bot', image_url='http://example.com/annoying-image.gif', version='1.0', profile_url='http://example.com/') bot.RegisterHandler(waveapi.events.BLIP_SUBMITTED, OnBlipSubmitted) bot.RegisterHandler(waveapi.events.WAVELET_SELF_ADDED, OnRobotAdded) bot.Run() </code></pre> <p>Right now I'm working on a Google App Engine project that's going to be a collaborative text adventure game. For this game I made a bot that lets you play it on Wave. It uses Wave's threading of blips to let you branch the game at any point etc. For more info, have a look at <a href="http://code.google.com/p/multifarce" rel="nofollow noreferrer">the Google Code project page</a> (scroll down a little bit for a screenshot.)</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload