forked from logicguy1/The-all-in-one-discord-tool
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
121 lines (102 loc) · 6.12 KB
/
main.py
File metadata and controls
121 lines (102 loc) · 6.12 KB
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
LICENSE = """
Copyright © 2021 Drillenissen#0666
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
"""
import time
import os
print(LICENSE)
time.sleep(1)
os.system('cls' if os.name == 'nt' else 'clear')
print("Checking internal version with servers")
try:
import requests
except ImportError as ex:
input(f"Module {ex.name} not installed, to install run '{'python' if os.name == 'nt' else 'python3.8'} -m pip install {ex.name}'\nPress enter to exit")
exit()
response = requests.get("https://raw.githubusercontent.com/logicguy1/The-all-in-one-discord-tool/main/version.txt")
with open("version.txt", "r") as file:
curVersion = file.read().strip()
if response.status_code != 200:
exit()
if curVersion != response.text.strip():
print("WARNING: There is a newer version avaliable at \nhttps://github.com/logicguy1/The-all-in-one-discord-tool\nIt's highly recommended to update as soon as possible.\nThis message will dissapear in 5 seconds.")
time.sleep(5)
try:
import time
import os
from colored import fg, bg, attr
import modules.massReport as massReport
import modules.credits as credits
import modules.tokenGrabber as grabber
import modules.tokenRape as tokenRape
import modules.historyClear as historyClear
import modules.tokenWebhookChecker as checkers
import modules.webhookSpammer as spammer
import modules.autoBump as bumper
import modules.dankMemer as memer
import modules.serverLookup as serverLookup
except ImportError as ex:
input(f"Module {ex.name} not installed, to install run '{'python' if os.name == 'nt' else 'python3.8'} -m pip install {ex.name}'\nPress enter to exit")
exit()
r = fg(241) # Setup color variables
r2 = fg(255)
b = fg(31)
w = fg(15)
y = fg(3) + attr(1)
d = r2 + attr(21)
class Client:
def __init__(self):
modules = {
"1" : {"function" : tokenRape.rape, "name" : "TokenRape"},
"2" : {"function" : spammer.spammer, "name" : "WebhookSpammer"},
"3" : {"function" : checkers.token, "name" : "TokenChecker"},
"4" : {"function" : checkers.webhook, "name" : "WebhookChecker"},
"5" : {"function" : checkers.webhook_deleter, "name" : "WebhookDeleter"},
"6" : {"function" : historyClear.clear, "name" : "HistoryClear"},
"7" : {"function" : bumper.bumper, "name" : "AutoBump"},
"8" : {"function" : grabber.create_grabber, "name" : "TokenGrabber"},
"9" : {"function" : memer.start, "name" : "DankMemerGrinder"},
"10" : {"function" : serverLookup.fetch_data, "name" : "ServerLookup"},
"11" : {"function" : massReport.start, "name" : "MassReport"},
"12" : {"function" : credits.show_credits, "name" : "Credits"},
"13" : {"function" : exit, "name" : "Exit"}
}
self.modules = modules
def main(self):
os.system('cls' if os.name == 'nt' else 'clear')
print(f""" {r2} █████{b}╗{r2} ███{b}╗{r2} ██{b}╗{r2} ██████{b}╗{r2} ███{b}╗{r2} ██{b}╗{r2}██{b}╗{r2}██{b}╗{r2} ██{b}╗{r2}
██{b}╔══{r2}██{b}╗{r2}████{b}╗ {r2}██{b}║{r2}██{b}╔═══{r2}██{b}╗{r2}████{b}╗ {r2}██{b}║{r2}██{b}║╚{r2}██{b}╗{r2}██{b}╔╝{r2}
███████{b}║{r2}██{b}╔{r2}██{b}╗ {r2}██{b}║{r2}██{b}║ {r2}██{b}║{r2}██{b}╔{r2}██{b}╗ {r2}██{b}║{r2}██{b}║ ╚{r2}███{b}╔╝{r2}
██{b}╔══{r2}██{b}║{r2}██{b}║╚{r2}██{b}╗{r2}██{b}║{r2}██{b}║ {r2}██{b}║{r2}██{b}║╚{r2}██{b}╗{r2}██{b}║{r2}██{b}║ {r2}██{b}╔{r2}██{b}╗{r2}
██{b}║ {r2}██{b}║{r2}██{b}║ ╚{r2}████{b}║╚{r2}██████{b}╔╝{r2}██{b}║ ╚{r2}████{b}║{r2}██{b}║{r2}██{b}╔╝ {r2}██{b}╗{r2}
{b}╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═══╝╚═╝╚═╝ ╚═╝
{r2} * DISCLAIMER: This script is made for *
* educational purposes and the developers *
* assume no liabilaty and are not responsible *
* for any misuse or damages caused by the *
* script *
""")
indx = 0
for key, val in self.modules.items():
num = f"{r2}[{b}{key}{r2}]"
print(
f" {num:<6} {val['name']:<{20 if int(key) < 10 else 19}}",
end = "" if indx % 2 == 0 else "\n"
)
indx += 1
if indx % 2 == 1:
print("")
option = input(f"\n {r2}[{b}?{r2}] Option: ")
data = self.modules[option]
try:
data["function"]()
except KeyboardInterrupt:
input(f"\n {r2}[{b}!{r2}] Keyboard Interrupt")
else:
input(f"\n {r2}[{b}!{r2}] Done! Press enter to continue")
self.main()
if __name__ == '__main__':
client = Client()
client.main()