#!/usr/bin/env python from AIMLBot import AIMLBot import sys import re nickname = 'piming' aiml = AIMLBot(nickname) #sentence = aiml.on_MSG_IN(nickname, 'hello') while True: print aiml.on_MSG_IN(nickname, raw_input("> "))
def __init__(self, channel, nickname, password=''): self.channel = channel self.nickname = nickname self.password = password self.aiml = AIMLBot(self.nickname)