Created
September 3, 2021 10:16
-
-
Save xm4r1us/491cc12ef0f31339acf903e9d9a96829 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import random | |
token = input("Token => ") | |
token2 = input("Sunucu ID => ") | |
metin = input("Metin =>") | |
headers = { | |
'authority': 'discord.com', | |
'authorization': f"{token}", | |
'accept-language': 'en-US', | |
'user-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) discord/1.0.9002 Chrome/83.0.4103.122 Electron/9.3.5 Safari/537.36', | |
'content-type': 'application/json', | |
'accept': '*/*', | |
'origin': 'https://discord.com', | |
'sec-fetch-site': 'same-origin', | |
'sec-fetch-mode': 'cors', | |
'sec-fetch-dest': 'empty', | |
'referer': 'https://discord.com/channels/@me', | |
} | |
data = '{"content":"'+metin+'","mention_everyone":true,"nonce":"8832898019423682'+ str(random.randint(25,66)) +'","tts":false}' | |
response = requests.post(f'https://discord.com/api/v9/channels/{token2}/messages', headers=headers, data=data) | |
print(response.text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment