surly adjective
- bad-tempered and unfriendly
Surly2 is a half-complete node.js AIML interpreter with a bad attitude.
Surly2 is a remake from the ground up of Surly using Node 5 and using as much asynchronicity as possible.
Actually works quite well so far but not everything is implemented. Even so, I wouldn't try using it for anything serious quite yet. Check out COVERAGE.md for full details.
- Acquire code
npm install
Config files are found and read by rc. Check the "Configuration File Formats" section of the rc readme for more instructions. Any flag shown in node cli.js --help can be set in the options file.
You probably just want to create ~/.surly2rc and put something like this in it:
{
"brain": "/path/to/aiml/files",
"username": "someXMPPUser@example.com",
"password": "whatever"
}
node cli.js- Talk to Surly.
- Type
exitto exit.
Or chat over XMPP
- Set up a config file (see above) with XMPP details
username,password,hostandport. node xmpp.js- You can't add contacts yet. You'll have to do that yourself somehow.
Surly uses the debug npm package for debugging. E.g.
DEBUG=surly2 node cli.js
- Richard Wallace, creator of AIML and AliceBot.
- Noel Bush, author of the well written, if jargon-dense, AIML v1.0.1 spec.