コード例 #1
0
 def doChain(self):
     """
     invoke handlers and return reply xmlstr
     """
     try :
         result =  self.invokeNext()
         return result==None and textReply(self.userMsg) or result
     except Exception as e:
         logging.exception(str(e))
         return textReply(self.userMsg,"555更新姬被玩坏了啦><")
コード例 #2
0
 def doChain(self):
     """
     invoke handlers and return reply xmlstr
     """
     try:
         result = self.invokeNext()
         return result == None and textReply(self.userMsg) or result
     except Exception as e:
         logging.exception(str(e))
         return textReply(self.userMsg, "555不能碰那里了啦><")
コード例 #3
0
 def handle(self, handlerChain):
     if handlerChain.getMsgContent() == __coderCalenderKey__:
         return textReply(handlerChain.userMsg, find())
     else:
         return handlerChain.invokeNext()
コード例 #4
0
 def handle(self,handlerChain):
     if handlerChain.getMsgContent() == __animeListKey__:
         return textReply(handlerChain.userMsg,todayContent())
     else:
         return handlerChain.invokeNext()
コード例 #5
0
 def handle(self,handlerChain):
     if handlerChain.getMsgContent() == __coderCalenderKey__:
         return textReply(handlerChain.userMsg,find())
     else:
         return handlerChain.invokeNext()