forked from Kelder/cammiechat
More depression
This commit is contained in:
parent
4e826e8e0e
commit
479bd938bd
1 changed files with 2 additions and 2 deletions
4
chat.py
4
chat.py
|
@ -93,8 +93,8 @@ def messages_post():
|
|||
url = 'http://10.0.5.42:8000/' # Set destination URL here
|
||||
post_fields = {'X-Messages': base64.b64encode(message)} # Set POST fields here
|
||||
|
||||
request = urllib.request.Request(url, urlencode(post_fields).encode())
|
||||
json = urllib.request.urlopen(request).read().decode()
|
||||
assembly_request = urllib.request.Request(url, urlencode(post_fields).encode())
|
||||
urllib.request.urlopen(assembly_request).read().decode()
|
||||
speak(message)
|
||||
|
||||
return "OK"
|
||||
|
|
Loading…
Reference in a new issue