I have the code for a real chatbot somewhere in the junk on my computer...
I found it by talking to igod, and that one is old, so it told me to view a "don't read me" page that had been moved, so google directed me to it, after a bit of searching.
In other words, I could do it right and make a very powerful one.