Beispiel #1
0
 def clear(self):
     """
     Clears (resets) the session and the
     memory, but does not kill it.
     """
     self.memory = FuzzyStack(20)
     self.memory.push("data", self.topics)
Beispiel #2
0
 def __init__(self, name, topics, bot):
     self.memory = FuzzyStack(20)
     self.memory.push("data", topics)
     self.memory.push("name", name)
     self.name = name
     self.topics = topics
     self.parser = Parser()
     self.bot = bot