This project is now abandoned. No support is given.
What is JSChat?
JSChat is a library to quickly build a chatbot, that can run in a userscript.
How does it work?
It works by parsing the chat DOM, and calling a handler for each message.
The handler function has 1 argument,
More documentation at GitHub.
Ask in the GitHub Issues section of the GitHub repo. (or below if you don't use GitHub)