Ejemplo n.º 1
0
# coding=utf-8
import cleverbot
import formating

cb1=cleverbot.Session()
cb2=cleverbot.Session()

r1 = cb1.Ask("Salut")
print "cb1 : Salut" 

while True:
	r2 = formating.from_bot(cb2.Ask(formating.to_bot(r1)))
	print "cb2 : {0}".format(r2)
	r1 = formating.from_bot(cb1.Ask(formating.to_bot(r2)))
        print "cb1 : {0}".format(r1)

Ejemplo n.º 2
0
# coding=utf-8
import cleverbot
import formating

cb1 = cleverbot.Session()
cb2 = cleverbot.Session()

r1 = cb1.Ask("Salut")
print "cb1 : Salut"

while True:
    r2 = formating.from_bot(cb2.Ask(formating.to_bot(r1)))
    print "cb2 : {0}".format(r2)
    r1 = formating.from_bot(cb1.Ask(formating.to_bot(r2)))
    print "cb1 : {0}".format(r1)
Ejemplo n.º 3
0
 def print_text(self, name, text):
     text = formating.from_bot(text)
     self.liststore.append([str(name), str(text)])
Ejemplo n.º 4
0
	def print_text(self,name,text):
		text = formating.from_bot(text)
		self.liststore.append([str(name),str(text)])
Ejemplo n.º 5
0
	def print_text(self,name,text):
		text = formating.from_bot(text)
		self.liststore.append([str(name),str(text)])
		self.scrolledwindow.get_vadjustment().set_value( self.scrolledwindow.get_vadjustment().get_upper())