def gproblems(self, data): monitor.getproblems("pohui", "hardcoded", data.split()[-1]) write.writethis(str("stopme"), self.r_id, self.w_tid, self.color)
def iuser(self, rid_uid): info = user.invite(rid_uid, self.iu_tid) write.writethis(str(info), self.r_id, self.w_tid, self.color)
def jcreate(self, data): icreate.newissue(self.j_log, self.j_pas, data) write.writethis(str("stopme"), self.r_id, self.w_tid, self.color)
def hello(self): write.writethis(str(tequila.hello()), self.r_id, self.w_tid, self.color)
def croom(self, rname, rtopic): croom_id = create.new(rname, rtopic, self.cr_tid) write.writethis("Created new room. ID %s: " % str(croom_id), self.r_id, self.w_tid, self.color)
def wthr(self): write.writethis(str(weather.get()), self.r_id, self.w_tid, self.color)
def ping(self, data): write.writethis( (str(ping.state(data.replace("!ping", "")))), self.r_id, self.w_tid, self.color ) #TODO: по-хорошему нужно инкапсулировать обрезалку пингов внутрь
def tqla(self): write.writethis(tequila.getfact(), self.r_id, self.w_tid, self.color)
def calc(self, data): write.writethis(str(rez), self.r_id, self.w_tid, self.color)
def write(self, data): write.writethis(data, self.r_id, self.w_tid, self.color)