forked from merwin-asm/Statman
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
158 lines (132 loc) · 4 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
"""
A tool for constantly changin discord status...
"""
import requests as r
import time
import random
from rich import print
ascii_art = """
______ ________ ________ __ __ __
/ \ / | / |/ \ / | / \ / |
/$$$$$$ |$$$$$$$$/______$$$$$$$$/ $$ \ /$$ | ______ $$ \ $$ |
$$ \__$$/ $$ | / \ $$ | $$$ \ /$$$ | / \ $$$ \$$ |
$$ \ $$ | $$$$$$ | $$ | $$$$ /$$$$ | $$$$$$ |$$$$ $$ |
$$$$$$ | $$ | / $$ | $$ | $$ $$ $$/$$ | / $$ |$$ $$ $$ |
/ \__$$ | $$ |/$$$$$$$ | $$ | $$ |$$$/ $$ |/$$$$$$$ |$$ |$$$$ |
$$ $$/ $$ |$$ $$ | $$ | $$ | $/ $$ |$$ $$ |$$ | $$$ |
$$$$$$/ $$/ $$$$$$$/ $$/ $$/ $$/ $$$$$$$/ $$/ $$/"""
headers = {
"authorization" : "",
"user-agent" : "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36",
}
url = 'https://discord.com/api/v9/users/@me/settings'
print(f"[green]{ascii_art}[/green]\n")
print("[blue]Your Authorization Token : [/blue]",end="")
token = input("")
headers["authorization"] = token
print("")
print("""
[bold][yellow] << OPTIONS >> [/yellow][/bold]
[blue] - > 0 - Word By Word
- > 1 - Cascading Animation
- > 2 - Loading
- > 3 - Loading + Text[/blue]
[yellow] >> [/yellow]""", end="")
option = input("")
payload = {
"custom_status": {
"text":""
}
}
a = r.patch(url , headers=headers, json=payload)
if a.status_code == 401:
print("[red]Invaild Token..[/red]")
quit()
if option == "0":
stats_inp = input("All Status (Seperate using '///') : ").split("///")
while True:
for status in stats_inp:
payload = {
"custom_status": {
"text": status}
}
a = r.patch(url , headers=headers, json=payload)
print(f"[green] {a.status_code} : Currrent : {status} [/green]")
time.sleep(1)
time.sleep(1.5)
elif option == "1":
status = input("Status : ")
while True:
a_ = ""
for s in status:
a_ = a_ + s
payload = {
"custom_status": {
"text": a_}
}
a = r.patch(url , headers=headers, json=payload)
print(f"[green] {a} : Currrent : {status} [/green]")
time.sleep(0.1)
a_ = ""
time.sleep(1)
elif option == "2":
www = input("Slim or Thicc (|/❚) - (0/1) : ")
if www == "0":
status = "|"*10
l = 10
else:
status = "❚"*5
l = 5
while True:
a_ = ""
ad = round(100/l)
p = 0
for s in status:
p += ad
if p > 100:
p = 0
a_ = a_ + s
sp = ""
payload = {
"custom_status": {
"text": a_ + f" {sp}{p}%"}
}
a = r.patch(url , headers=headers, json=payload)
print(f"[green] {a} : Currrent : {a_} [/green]")
time.sleep(0.25)
a_ = ""
time.sleep(3)
elif option == "3":
status_ = input("Status : ")
www = input("Slim or Thicc (|/❚) - (0/1) : ")
if www == "0":
status = "|"*10
l = 10
else:
status = "❚"*5
l = 5
while True:
a_ = ""
ad = round(100/l)
p = 0
for s in status:
p += ad
if p > 100:
p = 0
a_ = a_ + s
sp = ""
payload = {
"custom_status": {
"text": a_ + f" {sp}{p}%"}
}
a = r.patch(url , headers=headers, json=payload)
print(f"[green] {a} : Currrent : {a_} [/green]")
time.sleep(0.25)
a_ = ""
payload = {
"custom_status": {
"text": status_}
}
a = r.patch(url , headers=headers, json=payload)
print(f"[green] {a} : Currrent : {status_} [/green]")
time.sleep(2)