summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormrdog233o5 <mr.dog233o5@gmail.com>2023-09-02 13:08:20 +0800
committermrdog233o5 <mr.dog233o5@gmail.com>2023-09-02 13:08:20 +0800
commit560a28111c5d0d9618d4c4d95e84fc82efc7912e (patch)
tree3b6c444589caafe486773ed2283ccc00e675ae2b
parent1ead48b3f0253ead67d710e4b89c68dbf2275cf6 (diff)
cao
-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