Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

sqlwwx/tuling123-client

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.