Created
September 11, 2018 17:09
-
-
Save PLaRoche/1c600e7a34f98585b137ee29730728f1 to your computer and use it in GitHub Desktop.
send_sms_question
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def send_sms_question(command, channel): | |
data = command.split(" ", 2) # maxsplit | |
question = pytill.make_question(data[2], channel, PUBLIC_ADDR + WEBHOOK_ADDR) | |
pytill.send_question([data[1]], [question], "{}-tag".format(data[2])) | |
response = "Question sent to {} listening for answers...".format(data[1]) | |
return response |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment