summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/index.py b/index.py
index ca48c80..bdac81c 100644
--- a/index.py
+++ b/index.py
@@ -19,13 +19,14 @@ old_message = ""
def handle_post_request():
global old_message
message = request.get_data().decode('utf-8')
+ file = eval(message)
# Check if the message is different from the previous one
if message != old_message:
payload = {
'content': message
}
files = {
- "file" : message # The picture that we want to send in binary
+ "file" : (file[0],file[1]) # The picture that we want to send in binary
}
# Send the message to the Discord channel