Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (20 sloc) 0.472 kB

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

Usage

  • In command line terminate

    npm i xiaoi -g
    xiaoi
    
  • In your node project

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