示例#1
0
文件: bot.py 项目: melmothx/jsonbot
 def toppost(self, waveid, txt):
     """ output to the root id. """
     if not self.domain in waveid:
         logging.warn("%s - not connected - %s" % (self.name, waveid))
         return
     wave = Wave(waveid)
     if wave and wave.data.waveid: wave.toppost(self, txt)
     else: logging.warn("%s - we are not joined to %s" % (self.name, waveid))
示例#2
0
 def toppost(self, waveid, txt):
     """ output to the root id. """
     if not self.domain in waveid:
         logging.warn("%s - not connected - %s" % (self.name, waveid))
         return
     wave = Wave(waveid)
     if wave and wave.data.waveid: wave.toppost(self, txt)
     else:
         logging.warn("%s - we are not joined to %s" % (self.name, waveid))