Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    xiaoipublic

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

    Keywords

    none

    install

    npm i xiaoi

    Downloadsweekly downloads

    16

    version

    0.1.2

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar