An API for Cleverbot in Python
Project description
Cleverbot.py - an API for Cleverbot in Python
=============================================
Comments/pull requests/feedback welcome!
Usage
-----
Taken from cleverbot/cleverbot.py:150-161
```
>>> if __name__ == "__main__":
cb1 = Cleverbot()
cb2 = Cleverbot()
resp1 = cb1.ask("Hello.")
print "Bob:", "Hello"
while True:
print "Alice:", resp1
resp2 = cb2.ask(resp1)
print "Bob:", resp2
resp1 = cb1.ask(resp2)
```
=============================================
Comments/pull requests/feedback welcome!
Usage
-----
Taken from cleverbot/cleverbot.py:150-161
```
>>> if __name__ == "__main__":
cb1 = Cleverbot()
cb2 = Cleverbot()
resp1 = cb1.ask("Hello.")
print "Bob:", "Hello"
while True:
print "Alice:", resp1
resp2 = cb2.ask(resp1)
print "Bob:", resp2
resp1 = cb1.ask(resp2)
```
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cleverbot2-0.0.3.tar.gz
(3.1 kB
view hashes)