From 2f0d44c2b45bf4194f74cac9746d85db3c0d9fb2 Mon Sep 17 00:00:00 2001 From: mrdog233o5 Date: Sat, 2 Sep 2023 00:12:22 +0800 Subject: new tokwn --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 0c2a936..698649f 100644 --- a/main.py +++ b/main.py @@ -2,7 +2,7 @@ from requests import get from time import sleep # Set up the necessary variables -token = 'MTE0MDk5MjQ2NjU2MTAwNzYxNw.GRZ07p.dwkI7bttQzfqr17OHFw2p0eCYtIplJrJF0P1oo' +token = "OTEyMDExNjQzOTQ3NDc5MDgx.G_0FA6.4NubZfVPRUAiyVEaJiK39i78NCS-nH8RRKYcP4" user_id = ['898077475723161621', '912011643947479081'] channel_id = '1140999625680101396' @@ -12,7 +12,6 @@ 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) @@ -32,6 +31,7 @@ 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}' -- cgit v1.2.3