UrbanTwitch
12-16-2007, 04:43 AM
I would like to know a good code example of a JavaScript Bot. One is basically where you have a <textarea> and a single line. You would type in the single line "Hello Bot, how are you?" and in the textarea it would appear something like this:
How are you?
JSBot: Good, thanks for asking.
You get where I'm going at? A example is this: http://pac-txt.com/. But without the pacman concept. :P
Also I'm sure it would have to do something with the "if" statement. Where if you typed something, something else would appear.
How are you?
JSBot: Good, thanks for asking.
You get where I'm going at? A example is this: http://pac-txt.com/. But without the pacman concept. :P
Also I'm sure it would have to do something with the "if" statement. Where if you typed something, something else would appear.