def __init__(self, nick, path): self.nick = nick self.lasthour = "" self.lastmsg = "" self.path = path + nick + "/" self.msgfound = False self.msgtime = 0 iohandler.createfiles(self.path) self.answers = {} for i in range(25): self.answers[i] = iohandler.getall_lines(self.path, i)
def getallanswers(self, hour): answers = iohandler.getall_lines(self.path, hour) return answers