Exemplo n.º 1
0
danny_sock = Connection(danny_bot)
danny_sock.connect()


# socky = Connection(other_bot)
# socky.connect()

# socky2 = Connection(second_bot)
# socky2.connect()


while 1:
	# message = socky.receive()
	# other_bot.respond(socky, message)

	message = danny_sock.receive()
	danny_bot.respond(danny_sock, message)


	# message2 = socky2.receive()




# def start():
# 	if __name__ == "__main__":
# 		t1 = threading.Thread(target = bot_2_thread, args = ())
# 		t1.start()

# 		t2 = threading.Thread(target = bot_1_thread, args = ())
# 		t2.start()