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.
Basic usage:
In order to add your key to your bot, you can use the configure method. API keys can be obtained from the Cleverbot API Sign Up Page.
var Cleverbot = require('cleverbot-node');
cleverbot = new Cleverbot;
cleverbot.configure({botapi: "IAMKEY"});
cleverbot.write(cleverMessage, function (response) {
console.log(response.output);
});Changes from 0.2.x
- API Key is now required
Cleverbot.preparecall is no longer needed. It is now a noop for backwards compatibility- The output of the bot is now in the
outputattribute of the response object. It is copied tomessagefor backwards compatibility
Known issues
- Cleverbot API sometimes returns an empty response attribute
See 'examples' for more usage.