FlavioSune

10 years 10 months ago

GroG, I'm really interested in how you managed to get your bot to chat!

Maybe another function to insert in R2? What do you think? 

FLAVIO !

Nice to see you back ;)

Chat (which is the XMPP Service) has a lot of potential, it can make communicating and controlling your robot very easy.  You can control it through most many firewalls and without having to setup port forwarding.

In order to do it though you need to setup a Jabber account. One way to do this is to get a gmail account for your robot.  With gmail the account owner gets a gtalk/jabber account automatically.  

For security your robot will only chat & take commands from one of your robot's "buddys" - so you have to sign into your robot's account and add yourself as a buddy.

Then in script xmpp is pretty easy to start.

xmpp = Runtime.createAndStart("xmpp","XMPP")
xmpp.connect("talk.google.com", 5222, "robot@gmail.com", "mypassword")
xmpp.addAuditor("Flavio Sune") # add yourself as you appear to your robot 
xmpp.setStatus(True," I am alive and waiting for your orders ")

 

 

FlavioSune

10 years 10 months ago

Perfect!

Simple and direct!

Will try this soon!!!