cleverbot

Wrapper for the official cleverbot API

Usage no npm install needed!

<script type="module">
  import cleverbot from 'https://cdn.skypack.dev/cleverbot';
</script>

README

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

});