mirror of
https://github.com/1disk/edp445.git
synced 2024-08-14 22:47:02 +00:00
18 lines
No EOL
566 B
Markdown
18 lines
No EOL
566 B
Markdown
# cleverbot-free
|
|
Simple unofficial package to interact with the same API that the Cleverbot website uses for free.
|
|
|
|
## **Please use the official Cleverbot API as the Cleverbot developers can easily break this package at any time.**
|
|
|
|
# Usage
|
|
```js
|
|
const cleverbot = require("cleverbot-free");
|
|
|
|
// Without context
|
|
cleverbot("Hello.").then(response => /*...*/);
|
|
|
|
// With context
|
|
// Please note that context should include messages sent to Cleverbot as well as the responses
|
|
cleverbot("Bad.", ["Hi.", "How are you?"]).then(response => /*...*/);
|
|
```
|
|
|
|
**Typings included** |