Kongregate physical Chat Bot

Keep a log of a project build here. Be sure to include pictures and as much documentation as possible.

Kongregate physical Chat Bot

Postby ggppjj » December 22nd, 2012, 2:41 pm

Hello, Hackaday-ers! I'm Gabe, and I have a JavaScript chat bot on Kongregate called "Crunchybot". The way it currently works is by injecting JavaScript code into the webpage after it's loaded, to add custom listeners for commands, and send custom responses. This, however, has very obvious pitfalls:

  • I have to have my computer and a browser up 24-7 just to connect.
  • I have to rely on the browser's implementation of JavaScript to be reliably not broken.
  • I have to stay with functionality that doesn't break cross-site scripting rules (so no tweeting, getting weather info, or anything to do with files [can someone say chatlogs?]).
So, according to Ben Vinson's (Kong's chat creator) page:
Kongregate's chat platform is based upon several open-source projects. The back-end XMPP server is a customized version of Openfire, and the client side uses the XIFF library.


I have asked for and received permission from Mr. Vinson to try to create or modify an XMPP client to communicate with Kongregate's chat server, so that's what I plan on doing. I don't, however, have any idea where to start, so I'm bringing it into the world of Hackaday for help from those that know. I also plan on putting this on a Forebrain development board, and then housing it in a physical robot to interact physically with (and maybe be interacted virtually to do physical things...) and be stored. If anyone at all could help with this undertaking, please please PLEASE contact me. I'll keep a log of what I've done so far, and what I plan on doing, here.
ggppjj
 
Posts: 18
Joined: November 18th, 2011, 12:10 pm

Re: Kongregate physical Chat Bot

Postby ggppjj » December 22nd, 2012, 2:41 pm

Reserved for future use.
ggppjj
 
Posts: 18
Joined: November 18th, 2011, 12:10 pm

Re: Kongregate physical Chat Bot

Postby ggppjj » December 25th, 2012, 4:27 am

OK, so I've managed to find the server they use for the openfire protocol, but I have no clue how to read XMPP data from wireshark, and due to the potential for my password being in those captures somewhere, I don't really want to release them. If anyone knows how to read XMPP data, either let me know, or analyse the traffic from and to of1.kongregate.com.
ggppjj
 
Posts: 18
Joined: November 18th, 2011, 12:10 pm

Re: Kongregate physical Chat Bot

Postby ChalkBored » December 25th, 2012, 6:06 am

XMPP is an open standard, either look the standard up and implement it yourself, or use an existing library for it.

I suggest the latter.

http://xmpp.org/xmpp-software/libraries/
ChalkBored
 
Posts: 35
Joined: January 26th, 2011, 3:31 am

Re: Kongregate physical Chat Bot

Postby ggppjj » December 25th, 2012, 3:35 pm

I would, but apparently they are running a very hacked-together implementation of it. I tried directly connecting to of1.kongregate.com, but it would go as far as an authentication step, then fail when I put in a password for an actual account. If it were as simple as a library, it'd be done already.
ggppjj
 
Posts: 18
Joined: November 18th, 2011, 12:10 pm


Return to Project Logs

Who is online

Users browsing this forum: Bing [Bot] and 2 guests