tuling123-client

0.0.3 • Public • Published

tuling123-client

Installation

npm install tuling123-client

Getting Started

Robot = require 'tuling123-client'
robot = new Robot(
  '0a4114ff7687944016c9d50a07eb0f250',
  'http://www.tuling123.com/openapi/api',
  (info, options) ->
    if info.startsWith '#'
      'start command ' + info.substr 1
    else
      null
)
robot.ask('你好', userid: 'wwx').then console.log
robot.ask('#list', userid: 'wwx').then console.log
robot.ask('#list', userid: 'wwx', (info, options) ->
  if info.startsWith '#'
    'start command ' + info.substr(1) + ' for ' + options.userid
  else
    null
).then console.log

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    0
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i tuling123-client

Weekly Downloads

0

Version

0.0.3

License

MIT

Unpacked Size

2.08 kB

Total Files

3

Last publish

Collaborators

  • sqlwwx