cleverbot

1.0.1 • Public • Published

Cleverbot

In order to use this package, you must obtain a Cleverbot API key here.

Usage

const Cleverbot = require('cleverbot');
 
let clev = new Cleverbot({
  key: 'YOUR_API_KEY' // Can be obtained at http://cleverbot.com/api
});
 
clev.query('Just a small town girl')
.then(function (response) {
  console.log(response.output); //=> Livin' in a lonely world!
 
  clev.query(response.output, {
    cs: response.cs
  })
  .then(function (response2) {
    console.log(response2.output); //=> She took the midnight train going anywhere.
  });
 
});

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i cleverbot

    Weekly Downloads

    10

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • dtesler