cleverbot-node

2020-02-14

Cleverbot client for node.js

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 configuremethod. 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 to messagefor backwards compatibility

Known issues

  • Cleverbot API sometimes returns an empty response attribute

See 'examples' for more usage.

Repository

https://github.com/fojas/cleverbot-node.git


上一篇:ffmpeg-binaries
下一篇:bjson
相关教程
关注微信

扫码加入 JavaScript 社区

相关文章

首次访问,需要验证
微信扫码,关注即可
(仅需验证一次)

欢迎加入 JavaScript 社区

号内回复关键字:

回到顶部