-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.py
More file actions
49 lines (39 loc) · 2.35 KB
/
main.py
File metadata and controls
49 lines (39 loc) · 2.35 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
from pathlib import Path
from colorama import Fore
import os
filepath = Path(__file__).resolve().parent / "src" / "raidbot.py"
def clear(): os.system('cls' if os.name == 'nt' else 'clear')
banner = r"""
██▀███ ▄▄▄ ██▓▓█████▄ ▄▄▄▄ ▒█████ ▄▄▄█████▓
▓██ ▒ ██▒▒████▄ ▓██▒▒██▀ ██▌▓█████▄ ▒██▒ ██▒▓ ██▒ ▓▒
▓██ ░▄█ ▒▒██ ▀█▄ ▒██▒░██ █▌▒██▒ ▄██▒██░ ██▒▒ ▓██░ ▒░
▒██▀▀█▄ ░██▄▄▄▄██ ░██░░▓█▄ ▌▒██░█▀ ▒██ ██░░ ▓██▓ ░
░██▓ ▒██▒ ▓█ ▓██▒░██░░▒████▓ ░▓█ ▀█▓░ ████▓▒░ ▒██▒ ░
░ ▒▓ ░▒▓░ ▒▒ ▓▒█░░▓ ▒▒▓ ▒ ░▒▓███▀▒░ ▒░▒░▒░ ▒ ░░
░▒ ░ ▒░ ▒ ▒▒ ░ ▒ ░ ░ ▒ ▒ ▒░▒ ░ ░ ▒ ▒░ ░
░░ ░ ░ ▒ ▒ ░ ░ ░ ░ ░ ░ ░ ░ ░ ▒ ░
░ ░ ░ ░ ░ ░ ░ ░
░ ░
By Zsocietyy"""
def main():
while True:
try:
clear()
print(Fore.MAGENTA + banner)
token = input(f"{Fore.GREEN}[*]{Fore.MAGENTA} Enter your token: ").strip()
if not token:
print(f"{Fore.RED}Error: Token cannot be None.{Fore.RESET}")
continue
server_id = input(f"{Fore.GREEN}[*]{Fore.MAGENTA} Enter your server ID: ").strip()
if not server_id:
print(f"{Fore.RED}Error: Server ID cannot be None.{Fore.RESET}")
continue
if not server_id.isdigit():
print(f"{Fore.RED}Error: Server ID must be a number.{Fore.RESET}")
continue
os.system(f"python \"{filepath}\" --token \"{token}\" --guild_id {server_id}")
except KeyboardInterrupt:
print(f"{Fore.RED}Process interrupted. Exiting...{Fore.RESET}")
exit(1)
if __name__ == "__main__":
main()