-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
66 lines (62 loc) · 1.84 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
import colorama
import sys
import os
from modules import menu
from modules import clear
from modules import settings
from modules import send_messages
from modules import spam_message
from modules import delete_webhook
from modules import change_webhook_name
from modules import change_webhook_avatar
from modules import setup
from modules import send_embeds
from modules import spam_embed
blue = colorama.Fore.BLUE
grey = colorama.Fore.LIGHTBLACK_EX
green = colorama.Fore.GREEN
white = colorama.Fore.WHITE
red = colorama.Fore.RED
options = {
1: settings,
2: send_messages,
3: spam_message,
4: send_embeds,
5: spam_embed,
6: delete_webhook,
7: change_webhook_name,
8: change_webhook_avatar,
}
def main():
try:
print(f""" {grey}[{green}1{grey}]{white} Settings
{grey}[{green}2{grey}]{white} Send Messages
{grey}[{green}3{grey}]{white} Spam Message
{grey}[{green}4{grey}]{white} Send Embed Messages
{grey}[{green}5{grey}]{white} Spam Embed Message
{grey}[{green}6{grey}]{white} Delete Webhook
{grey}[{green}7{grey}]{white} Change Webhook's Name
{grey}[{green}8{grey}]{white} Change Webhook's Avatar
""")
option = int(input(f"{grey}[{green}Choice{grey}] {white}"))
if option in options:
options[option]()
clear()
menu()
main()
else:
print(f"{grey}[{red}Error{grey}] {white}Invalid Option")
except ValueError:
print(f"{grey}[{red}Error{grey}] {white}Invalid Option")
except KeyboardInterrupt:
print(f"\n{grey}[{green}Success{grey}]{red} Exiting.")
sys.exit(0)
if os.name == 'nt':
os.system('title HookTool')
else:
sys.stdout.write(f"\033]0;HookTool\007")
sys.stdout.flush()
setup()
clear()
menu()
main()