diff options
| author | mrdog233o5 <mr.dog233o5@gmail.com> | 2023-09-02 13:08:20 +0800 |
|---|---|---|
| committer | mrdog233o5 <mr.dog233o5@gmail.com> | 2023-09-02 13:08:20 +0800 |
| commit | 560a28111c5d0d9618d4c4d95e84fc82efc7912e (patch) | |
| tree | 3b6c444589caafe486773ed2283ccc00e675ae2b /index.py | |
| parent | 1ead48b3f0253ead67d710e4b89c68dbf2275cf6 (diff) | |
cao
Diffstat (limited to 'index.py')
| -rw-r--r-- | index.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |
