Debug
This commit is contained in:
parent
a529e1eb53
commit
6529e1b88b
@ -37,11 +37,14 @@ def sendmessage(target, message):
|
||||
ws.close()
|
||||
|
||||
for chatitem in response['resp']['chatItems']:
|
||||
status = chatitem['chatItem']['meta']['itemStatus']
|
||||
status = chatitem['chatItem']['meta']['itemStatus']['sndProgress']
|
||||
smessage = chatitem['chatItem']['meta']['itemText']
|
||||
print("Message %s sent over websocket to %s, status was %s" % (smessage, target, status))
|
||||
|
||||
if chatitem['chatItem']['content']
|
||||
if status == 'complete':
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
||||
|
||||
@app.route("/webhook/<id>", methods=['POST'])
|
||||
|
Loading…
Reference in New Issue
Block a user