ringcentral-chatbot-skill-ping

0.1.2 • Public • Published

RingCentral Chatbot skill: Ping

This skill enables the chatbot to reply with "pong" when it received "ping".

It should be used together with RingCentral Chatbot framework for JavaScript.

Install

yarn add ringcentral-chatbot-skill-ping

Basic Sample

import createApp from 'ringcentral-chatbot/dist/apps'
import pingSkill from 'ringcentral-chatbot-skill-ping'

const app = createApp(undefined, [pingSkill])

Advanced Sample

import createApp from 'ringcentral-chatbot/dist/apps'
import pingSkill from 'ringcentral-chatbot-skill-ping'
// import fooSkill from 'ringcentral-chatbot-skill-foo'
// import barSkill from 'ringcentral-chatbot-skill-bar'

const handle = async event => {
  // event handling code
}

const app = createApp(handle, [
  pingSkill,
//   fooSkill,
//   barSkill
])
app.listen(3000)

Readme

Keywords

none

Package Sidebar

Install

npm i ringcentral-chatbot-skill-ping

Weekly Downloads

1

Version

0.1.2

License

MIT

Unpacked Size

170 kB

Total Files

7

Last publish

Collaborators

  • tylerlong