xiaoi

A xiaoi.com client for Node.js

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

  • 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) ;
    }) ;
     
    }) ;