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
def doSomething(self, payLoad): adapter.addPet(payLoad['user'], 'help') threadedResponse(payLoad, self.response) # reply return
def doSomething(self, payLoad): adapter.addPet(payLoad['user'], 'kiss') threadedResponse(payLoad, self.response) return