-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathreport.py
71 lines (67 loc) · 2.05 KB
/
report.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import requests, json
from colorama import Fore
with open("data.json", "r") as df:
data = json.load(df)
def sendn():
guild_id = input("Guild/Server ID: ")
channel_id = input("Channel ID: ")
message_id = input("Message ID: ")
print(f"""\n
{Fore.LIGHTGREEN_EX}Reason:\n
Ilegal content: 1
Harrassment: 2
Spam/Pishing/Relationated: 3
Self harm: 4
NSFW Content: 5
\n""")
reasonn = input("Reason (number): ")
heardst = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) discord/0.0.305 Chrome/69.0.3497.128 Electron/4.0.8 Safari/537.36',
'Authorization': data['token'],
'Content-Type': 'application/json'
}
reasons = {
'channel_id': channel_id,
'guild_id': guild_id,
'message_id': message_id,
'reason': reasonn
}
r = requests.post('https://discord.com/api/v6/report', headers=heardst, json=reasons)
print(r)
if r == 201:
print(f'{Fore.LIGHTGREEN_EX} Report Sent!')
else:
print("Token invalid!")
def sendm():
guild_id = input("Guild/Server ID: ")
channel_id = input("Channel ID: ")
message_id = input("Message ID: ")
print(f"""\n
{Fore.LIGHTGREEN_EX}Reason:\n
Ilegal content: 1
Harrassment: 2
Spam/Pishing/Relationated: 3
Self harm: 4
NSFW Content: 5
\n""")
reasonn = input("Reason (number): ")
heardst = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) discord/0.0.305 Chrome/69.0.3497.128 Electron/4.0.8 Safari/537.36',
'Authorization': data['token'],
'Content-Type': 'application/json'
}
reasons = {
'channel_id': channel_id,
'guild_id': guild_id,
'message_id': message_id,
'reason': reasonn
}
count = 0
while count < 5:
r = requests.post('https://discord.com/api/v6/report', headers=heardst, json=reasons)
print(r)
if r == 201:
print(f'{Fore.LIGHTGREEN_EX} Report Sent!')
else:
print("Token invalid!")
count+=1