Skip to content

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

License

Notifications You must be signed in to change notification settings

Laezor/cleverbotfreeapi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cleverbotfreeapi

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

Downloads PyPI PyPI - Python Version PyPI - License

Installation

pip install cleverbotfreeapi

Usage

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?"))

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%