I'd also like to point out a couple things  First off, when you click
reply on any blip, the WAVELET_BLIP_CREATED event will fire, so you
will receive your "good comment" blip before any comment is even
made.  Secondly, use bundle.getEvents() as opposed to
bundle.getBlipSubmittedEvents() if you want to listen and test for ANY
event the client sends with the bundle.



On Oct 10, 6:50 am, twdarkflame <darkfl...@gmail.com> wrote:
> I'm probably doing something silly here, but I'm just trying to get my
> bot to respond to a post.
>
> I tried;
>
>  for (Event e: bundle.getBlipSubmittedEvents()) {
>            Blip blip2 = wavelet.appendBlip();
>               TextView textView2 = blip2.getDocument();
>               textView2.append("event="+e.getType().toString());
>
>               if (e.getType() == EventType.BLIP_SUBMITTED) {
>
>                   Blip blip3 = wavelet.appendBlip();
>                   TextView textView3 = blip3.getDocument();
>                   textView3.append("Thats a good comment!5/10");
>                 }
>
>               if (e.getType() == EventType.WAVELET_BLIP_CREATED ) {
>                   Blip blip4 = wavelet.appendBlip();
>                   TextView textView4 = blip4.getDocument();
>                   textView4.append("Thats a good comment! 10/10");
>                 }
>     }
>
> And I get nothing at all
>
> I also tried putting it in the
>  for (Event e: bundle.getEvents()) {
> ...
>
> }
>
> loop and also nothing.
>
> However,  if (e.getType() == EventType.WAVELET_PARTICIPANTS_CHANGED)
> {    ....
> does trigger an response.
> And so does bundle.wasSelfAdded() (which of course isnt in a loop).
>
> So...what am I missing?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Wave API" group.
To post to this group, send email to google-wave-api@googlegroups.com
To unsubscribe from this group, send email to 
google-wave-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-wave-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to