Metadata-Version: 2.1
Name: cleverbotfreeapi
Version: 1.1.0
Summary: Simple unofficial package to interact with the same API that the Cleverbot website uses for free.
Home-page: https://github.com/Deftera186/cleverbotfreeapi
Author: Liav Mordouch
Author-email: liavmordouch@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Description-Content-Type: text/markdown
Requires-Dist: requests

![cleverbotfreeapi](https://www.cleverbot.com/images/cleverbot254x114.jpg)

# cleverbotfreeapi
Simple unofficial package to interact with the same API that the Cleverbot website uses for free.
This package is inspired from the package that was written in node.js: https://www.npmjs.com/package/cleverbot-free
## Installation
```pip
pip install cleverbotfreeapi
```
## Usage
```python
import cleverbotfreeapi

# Without context or session
cleverbotfreeapi.cleverbot("Hello.")

# With context, without session
# Please note that context should include messages sent to Cleverbot as well as the responses
cleverbotfreeapi.cleverbot("Bad.", ["hi.", "How are you?"])

# Without context, with session
cleverbotfreeapi.cleverbot("Hi.", session="Deftera")
cleverbotfreeapi.cleverbot("Fine :)", session="Deftera")

# With context and session
# An ongoing conversation with the first question as "How are you?"
cleverbot(input(">>"), ["hi.", "How are you?"], "How are you?")
while True:
  print(cleverbot(input(">>"), session="How are you?"))
```

