diff options
| author | mrdog233o5 <mr.dog233o5@gmail.com> | 2023-09-02 09:54:46 +0800 |
|---|---|---|
| committer | mrdog233o5 <mr.dog233o5@gmail.com> | 2023-09-02 09:54:46 +0800 |
| commit | 16a81f2c68ca576f60692ce141a101e90ca8ab4e (patch) | |
| tree | ed7c6d2d445a07ab87dc176f76ea81d9d800d0e1 | |
| parent | 2f0d44c2b45bf4194f74cac9746d85db3c0d9fb2 (diff) | |
sory bromain
| -rw-r--r-- | main.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2,7 +2,7 @@ from requests import get from time import sleep # Set up the necessary variables -token = "OTEyMDExNjQzOTQ3NDc5MDgx.G_0FA6.4NubZfVPRUAiyVEaJiK39i78NCS-nH8RRKYcP4" +token = 'MTE0MDk5MjQ2NjU2MTAwNzYxNw.GRZ07p.dwkI7bttQzfqr17OHFw2p0eCYtIplJrJF0P1oo' user_id = ['898077475723161621', '912011643947479081'] channel_id = '1140999625680101396' @@ -12,6 +12,7 @@ url = f'https://discord.com/api/v9/channels/{channel_id}/messages' # Set the headers with the bot token for authentication headers = {'Authorization': f'Bot {token}'} + def main(): # Make the API request to fetch messages from the channel response = get(url, headers=headers) @@ -31,7 +32,6 @@ def main(): files.append(file) cmd = "webfile " + str(files) returnMsg[1] = cmd - print(returnMsg) return returnMsg else: return f'Error: {response.status_code} - {response.text}' |
