示例#1
0
文件: User.py 项目: djohsson/imouto
 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)
示例#2
0
	def getallanswers(self, hour):
		answers = iohandler.getall_lines(self.path, hour)
		return answers