Skip to content

Instantly share code, notes, and snippets.

@andrewwatson
Created November 9, 2011 02:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewwatson/1350119 to your computer and use it in GitHub Desktop.
Save andrewwatson/1350119 to your computer and use it in GitHub Desktop.
Chatter Pie
#!/usr/bin/python
import sys
from chatterbotapi import ChatterBotFactory, ChatterBotType
factory = ChatterBotFactory()
bot1 = factory.create(ChatterBotType.CLEVERBOT)
bot1session = bot1.create_session()
bot2 = factory.create(ChatterBotType.PANDORABOTS, 'd689f7b8de347251')
bot2session = bot2.create_session()
print sys.argv[1]
s = bot2session.think(sys.argv[1]);
print s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment