Code Monkey home page Code Monkey logo

surly2's Introduction

Surly2


node -v
v14.15.4
npm -v
7.6.0





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

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.

  1. Create a config file.

     ~/.surly2rc
    
  2. You can set defaults for any argument. See xmpp --help for a list of available arguments.

     {
         "brain": "/path/to/aiml/files",
         "username": "[email protected]",
         "password": "hunter2",
         "host": "talk.google.com",
         "port": "5222"
     }
    
  3. Then just run it - no arguments!

     node xmpp.js
    

Usage

  1. node cli.js
  2. Talk to Surly.
  3. 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.

Debugging

Surly uses the debug npm package for debugging. E.g.

DEBUG=surly2 node cli.js

Thanks

surly2's People

Contributors

mrchimp avatar c4pt000 avatar kirkins avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.