-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
71 lines (63 loc) · 3.95 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
import requests
import time
import json
from colorama import Fore
import os
banner = f"""{Fore.CYAN}
░██████╗████████╗░█████╗░████████╗██╗░░░██╗░██████╗ ░█████╗░██╗░░██╗░█████╗░███╗░░██╗░██████╗░███████╗██████╗░
██╔════╝╚══██╔══╝██╔══██╗╚══██╔══╝██║░░░██║██╔════╝ ██╔══██╗██║░░██║██╔══██╗████╗░██║██╔════╝░██╔════╝██╔══██╗
╚█████╗░░░░██║░░░███████║░░░██║░░░██║░░░██║╚█████╗░ ██║░░╚═╝███████║███████║██╔██╗██║██║░░██╗░█████╗░░██████╔╝
░╚═══██╗░░░██║░░░██╔══██║░░░██║░░░██║░░░██║░╚═══██╗ ██║░░██╗██╔══██║██╔══██║██║╚████║██║░░╚██╗██╔══╝░░██╔══██╗
██████╔╝░░░██║░░░██║░░██║░░░██║░░░╚██████╔╝██████╔╝ ╚█████╔╝██║░░██║██║░░██║██║░╚███║╚██████╔╝███████╗██║░░██║
╚═════╝░░░░╚═╝░░░╚═╝░░╚═╝░░░╚═╝░░░░╚═════╝░╚═════╝░ ░╚════╝░╚═╝░░╚═╝╚═╝░░╚═╝╚═╝░░╚══╝░╚═════╝░╚══════╝╚═╝░░╚═╝
Coded by luu_1
.gg/developers
"""
print(banner)
token = input(f"{Fore.WHITE}Input your token: ")
header = {
'Authorization': token
}
token_check = requests.get("https://discord.com/api/v9/users/@me", headers=header)
if token_check.status_code != 200:
print(f"{Fore.RED}[-] INVALID TOKEN{Fore.WHITE}")
exit()
os.system('cls||clear')
print(banner)
user = token_check.json()['username']
status = []
x = True
while x:
try:
print(f"{Fore.WHITE}Enter number of status's: ")
num = int(input(f"{Fore.LIGHTGREEN_EX}{user}@devbase:~$ "))
x = False
except ValueError:
os.system('cls||clear')
print(banner)
print(f"{Fore.LIGHTGREEN_EX}{user}@devbase:~$ {Fore.RED}Has to be a number. {Fore.WHITE}")
for i in range(num):
os.system('cls||clear')
print(banner)
print(f"{Fore.WHITE}Enter status #{i+1}:")
statuss = input(f"{Fore.LIGHTGREEN_EX}{user}@devbase:~$ ")
status.append(statuss)
current_status = requests.get("https://discord.com/api/v10/users/@me/settings", headers=header).json()
while True:
for i in range(num):
current_status['custom_status']['text'] = status[i]
json = {
"custom_status": current_status['custom_status'],
}
r= requests.patch("https://discord.com/api/v10/users/@me/settings", headers=header, json=json)
if r.status_code == 200:
os.system('cls||clear')
print(banner)
print(f'{Fore.LIGHTGREEN_EX}{user}@devbase:~$ ')
print(f"{Fore.WHITE}[+] Set status to --> {status[i]} {Fore.WHITE}")
else:
os.system('cls||clear')
print(banner)
print(f'{Fore.LIGHTGREEN_EX}{user}@devbase:~$ ')
print('{Fore.RED}[-] Error setting status:', r.json(), f'{Fore.WHITE}')
time.sleep(1.5)