npm

Need private packages and team management tools?Check out npm Orgs. »

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

install

npm i cleverbot

Downloadsweekly downloads

554

version

1.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability