def __init__(self, id, name, level=99): super(AIMLCharacter, self).__init__(id, name, level) self.kernel = Kernel() self.aiml_files = [] self.kernel.verbose(True) self.current_topic = '' self.counter = 0 self.N = 10 # How many times of reponse on the same topic self.languages = ['en']
def __init__(self, id, name, level=99): super(AIMLCharacter, self).__init__(id, name, level) self.kernel = Kernel() self.aiml_files = [] self.kernel.verbose(True) self.current_topic = '' self.counter = 0 self.N = 10 # How many times of reponse on the same topic self.languages = ['en'] self.max_chat_tries = 5 self.trace_pattern = re.compile( r'.*/(?P<fname>.*), (?P<tloc>\(.*\)), (?P<pname>.*), (?P<ploc>\(.*\))') self.response_limit = 512 self.type = TYPE_AIML