From 560a28111c5d0d9618d4c4d95e84fc82efc7912e Mon Sep 17 00:00:00 2001 From: mrdog233o5 Date: Sat, 2 Sep 2023 13:08:20 +0800 Subject: cao --- index.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3