Just another thing like the chatterbot plugin for javaop2, except it runs a mini webserver which you can chat to the bot through.
Simply java -jar httpai.jar brain port. Made it to learn sockets in java, and it has served me well. Post here if you want a copy. =)
Example output (Save it as index.html and double click =):
<html>
<head><title>HTTPAI 1.0</title></head>
<body>
<h1>Chat with me!</h1>
<hr />
(You) Dumb idiotic bot<br />
(Bot) OK SO HOW ARE YOU<br />
<br />
<form method="GET" action="/index.html">
<input type="text" name="textarea" />
</form>
<hr />
</body>
</html>