Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
小I机器人
CoffeeScript JavaScript CSS
branch: feature/catch-…

This branch is 17 commits behind master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
.gitignore
README.md
history.org
index.coffee
index.js
package.json
robotsig.js

README.md

node.js 的小I机器人客户端

Usage

  • In command line terminate

    npm i xiaoi -g
    xiaoi
    
  • In your node project

    var xiaoi = require('xiaoi') ;
    
    // connect to xiaoi.com
    xiaoi.connect(function(error,client){
    
        // send words and waiting for reply
        client.send("hello robot",function(error,reply){
            console.log ('xiaoi say:', replay.body.content) ;
        }) ;
    
    }) ;
Something went wrong with that request. Please try again.