0.1.0 • Published 7 years ago
cleverbot-unofficial-api v0.1.0
Cleverbot Unofficial API
Purpose
This node.js module was made to simplify usage of Cleverbot.com API.
Installation
You can install Cleverbot Unofficial API using npm with the command npm install cleverbot-unofficial-api --save
in your application repository.
Look at the next part for the usage guide.
Usage
It's very simple to use the module. Asking something
const cleverbot = require("cleverbot-unofficial-api");
cleverbot("my_api_key", "Hello, how are you today ?")
.then(response => console.log(response.output))
.catch(console.error);
If you want to make a full conversation, you can include the cs
parameter!
Making a conversation
const cleverbot = require("cleverbot-unofficial-api");
let cs;
cleverbot("my_api_key", "Did you see the last Harry Potter movie ?!", cs)
.then(response => {
console.log(response.output);
cs = response.cs;
}).catch(console.error);
Issues
If you have found an issue using the module, please report it in the Issues category.
0.1.0
7 years ago