Example #1
0
 def gproblems(self, data):
     monitor.getproblems("pohui", "hardcoded", data.split()[-1])
     write.writethis(str("stopme"), self.r_id, self.w_tid, self.color)
Example #2
0
 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)
Example #3
0
 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)
Example #4
0
 def hello(self):
     write.writethis(str(tequila.hello()), self.r_id, self.w_tid,
                     self.color)
Example #5
0
 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)
Example #6
0
 def wthr(self):
     write.writethis(str(weather.get()), self.r_id, self.w_tid, self.color)
Example #7
0
 def ping(self, data):
     write.writethis(
         (str(ping.state(data.replace("!ping", "")))), self.r_id,
         self.w_tid, self.color
     )  #TODO: по-хорошему нужно инкапсулировать обрезалку пингов внутрь
Example #8
0
 def tqla(self):
     write.writethis(tequila.getfact(), self.r_id, self.w_tid, self.color)
Example #9
0
 def calc(self, data):
     write.writethis(str(rez), self.r_id, self.w_tid, self.color)
Example #10
0
 def write(self, data):
     write.writethis(data, self.r_id, self.w_tid, self.color)