fillerwriter / surly2

Nodejs AIML interpreter. Built for Node 5.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Surly3

A rewrite of Surly2 from mrchimp, with a focus on testability.

surly adjective

  1. 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.

Status

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.

Requirements

Node.js

Installation

  1. Acquire code
  2. npm install
  3. npm run compile

Config

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"
}

Usage

  1. node cli.js
  2. Talk to Surly. Type exit to exit.

Or chat over XMPP

  1. Set up a config file (see above) with XMPP details username, password, host and port.
  2. node xmpp.js
  3. You can't add contacts yet. You'll have to do that yourself somehow.

Thanks

About

Nodejs AIML interpreter. Built for Node 5.


Languages

Language:JavaScript 100.0%