JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 138
  • Score
    100M100P100Q75146F

Cleverbot client for node.js

Package Exports

  • cleverbot-node

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (cleverbot-node) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Cleverbot-node

A node.js client for talking to cleverbot.

Based on the Cleverbot ruby gem Forked from https://github.com/fojas/cleverbot-node

Basic usage:

    var Cleverbot = require('cleverbot-node');
    cleverbot = new Cleverbot;
    Cleverbot.prepare(function(){
      cleverbot.write(cleverMessage, function (response) {
           alert(response.message);
      });
    });

With API Key:

The unofficial cleverbot api requests can optionally contain an API key. Information can be found here: http://www.cleverbot.com/apis

In order to add your key to your bot, you can use the configure method.

    var Cleverbot = require('cleverbot-node');
    cleverbot = new Cleverbot;
    cleverbot.configure({botapi: "IAMKEY"});
    Cleverbot.prepare(function(){
      cleverbot.write(cleverMessage, function (response) {
           alert(response.message);
      });
    });

See 'examples' for more usage.