-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
106 lines (74 loc) · 2.72 KB
/
main.py
File metadata and controls
106 lines (74 loc) · 2.72 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
# these are imports it imports external library like colorama or internal like os sys and time
# to install colorama youll need to open a shell and write the following command
# by the way colorama is used to produce color in a python shell like color commands in cmd
# pip install colorama
import os
import colorama
import sys
from colorama import Fore
import time
# this is the command to add color, write Fore. and then add the name of your color, you can find all the color name on colorama page
# this is the menu function
#it'll make the shell interface using a print and then you can paste any ascii text to make an interface
def menu():
global onstart
print(f"""
{Fore.WHITE} ________
{Fore.WHITE} ___|\_____ \
{Fore.WHITE}|\__\|____|\ /_
{Fore.WHITE}\|__| \|\ \
{Fore.WHITE} ___ __\_\ \
{Fore.WHITE} |\__\|\_______\
{Fore.WHITE} \|__|\|_______|
{Fore.WHITE}
https://discord.gg/nqDQeQjKzs
[help] [shutdown]
[0] exit [3] Random Cmd #3
[1] Random Cmd #1 [4] Random Cmd #4
[2] Random Cmd #2 [5] Random Cmd #5
{Fore.WHITE}
""")
# this is the command variable, its an input() btw between these () after the input you can writ everything you want im gonna show this to you
command = input(">")
#this is the command pattern
# i coded the exit command to help you with atleast one command
if command == "5":
print("command")
if command == "0":
print("> do you really want to leave ?")
command = input("> y/n $>")
time.sleep(1)
if command == "2":
print("command")
if command == "3":
print("command")
if command == "4":
print("command")
if command == "y":
time.sleep(1)
print("> Exiting.. See you next time !")
time.sleep(1)
sys.exit(0)
if command == "n":
time.sleep(1)
print("> Nevermind.. You're Back !")
time.sleep(1)
onstart()
if command == "help":
time.sleep(1)
print("""> Contact :
discord ID : 1084058757002178620
github : hlorror
""")
time.sleep(1)
onstart()
if command == "1":
print("command")
if command == "shutdown":
sys.exit()
def onstart():
cmd = 'mode 120,28' # this define the size of your shell window
os.system(cmd) # this will execute the variable associated to the size in the shell
os.system("cls && title :3")# this will clear the commands written and all the prints after the command has executed
menu() # this add the menu "gui"
onstart()