Exemplo n.º 1
0
 def doSomething(self, payLoad):
     adapter.addPet(payLoad['user'], 'snekpets')
     sqlResults = adapter.getPets()
     if not utils.validPayload(payLoad):
         directResponse(payLoad, words.textBadReport)
         return 
     response = utils.parsePets(sqlResults)
     directResponse(payLoad, response)
     return
Exemplo n.º 2
0
 def doSomething(self, payLoad):
     adapter.addPet(payLoad['user'], 'help')
     threadedResponse(payLoad, self.response) # reply
     return
Exemplo n.º 3
0
 def doSomething(self, payLoad):
     adapter.addPet(payLoad['user'], 'kiss')
     threadedResponse(payLoad, self.response)
     return