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)
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