This repository has been archived by the owner on Jul 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
403 lines (342 loc) · 21.9 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
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
import os
import colorama
import openai
from colorama import Fore, Back, Style
colorama.init(autoreset=True)
import argparse
import time
openai.api_key = "YOUR_API_KEY_HERE"
import signal
signal.signal(signal.SIGINT, signal.SIG_IGN)
import platform
#ydgjyfgkjdshgkjhgakjh
import subprocess
import click
from better_day.main import main
@click.command()
def better_day():
main()
if __name__ == '__main__':
better_day()
os.system('cls')
# Set the GitHub repository URL and the branch name
github_url = "https://github.com/tytan-codes/better-day.git"
branch_name = "Stable"
script_name = "main.py"
# Get the latest commit hash from the GitHub repository for the specified branch
cmd = f"git ls-remote {github_url} {branch_name}"
result = subprocess.run(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
if result.returncode != 0:
print("Error getting latest commit hash from GitHub.")
exit()
latest_commit = result.stdout.decode().split()[0]
# Check if the latest commit is already downloaded
cmd = "git rev-parse HEAD"
result = subprocess.run(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
if result.returncode != 0:
print("Error getting current commit hash.")
exit()
current_commit = result.stdout.decode().strip()
if current_commit == latest_commit:
print("You are running the latest version of the script.")
else:
print("A new version of the script is available on GitHub.")
print(f"Latest commit on {branch_name}: {latest_commit}")
print(f"{Style.BRIGHT + Fore.RED}You are running an outdated version of the script.")
print(f"{Style.BRIGHT}A new version of the script is available on GitHub.")
print(f"{Style.BRIGHT + Fore.RED}Please update by running update.py")
print(f'{Style.BRIGHT + Fore.RED}You updating will make your experience better')
exit()
def picker(nehow):
nehoww = platform.system()
if nehoww == 'Windows':
os.system(f'{nehow}')
if nehoww == 'Windows':
os.system(f'{nehow}')
def os():
current_os = platform.system()
if current_os == 'Windows':
thing()
elif current_os == 'Linux':
Linux()
else:
print('You operating system is not supported yet.')
print(f"Unknown operating system: {current_os}")
exit()
def clearr():
current_oss = platform.system()
if current_oss == 'Windows':
subprocess.call('cls', shell=True)
elif current_oss == 'Linux':
subprocess.call('clear', shell=True)
def Linux():
clearr()
print(Style.BRIGHT + Fore.YELLOW + '[' + Style.BRIGHT + Fore.RED + '#' + Style.BRIGHT + Fore.YELLOW + '] Options:')
print(Style.BRIGHT + Fore.RED + ' {' + Style.BRIGHT + Fore.WHITE +'1' + Style.BRIGHT + Fore.RED + '}' + Style.BRIGHT + Fore.YELLOW + ' ~> ' + Style.BRIGHT + Fore.WHITE +' Search')
print(Style.BRIGHT + Fore.RED + ' {' + Style.BRIGHT + Fore.WHITE +'2' + Style.BRIGHT + Fore.RED + '}' + Style.BRIGHT + Fore.YELLOW + ' ~> ' + Style.BRIGHT + Fore.WHITE +' System')
print(Style.BRIGHT + Fore.RED + ' {' + Style.BRIGHT + Fore.WHITE +'3' + Style.BRIGHT + Fore.RED + '}' + Style.BRIGHT + Fore.YELLOW + ' ~> ' + Style.BRIGHT + Fore.WHITE + ' For beta users')
print(Style.BRIGHT + Fore.RED + ' {' + Style.BRIGHT + Fore.WHITE +'4' + Style.BRIGHT + Fore.RED + '}' + Style.BRIGHT + Fore.YELLOW + ' ~> ' + Style.BRIGHT + Fore.WHITE + ' For beta users')
print(Style.BRIGHT + Fore.RED + ' {' + Style.BRIGHT + Fore.WHITE +'5' + Style.BRIGHT + Fore.RED + '}' + Style.BRIGHT + Fore.YELLOW + ' ~> ' + Style.BRIGHT + Fore.WHITE + ' For beta users')
print(Style.BRIGHT + Fore.RED + ' {' + Style.BRIGHT + Fore.WHITE +'0' + Style.BRIGHT + Fore.RED + '}' + Style.BRIGHT + Fore.YELLOW + ' ~> ' + Style.BRIGHT + Fore.WHITE +' Exit')
pick = (int(input(Style.BRIGHT + Fore.RED + 'Better Day ' + Style.BRIGHT + Fore.YELLOW + '> ' + Style.BRIGHT + Fore.RED + 'Choose ')))
if pick == 1:
lixSearch()
if pick == 2:
sssystem()
if pick == 3:
exit()
if pick == 4:
exit()
if pick == 5:
exit()
if pick == 0:
exit()
else:
print(f'{Fore.RED}Invalid Option')
def lixSearch():
clearr()
print(f"""{Fore.WHITE + Style.BRIGHT} _ _ _____ _
| | (_) / ____| | |
| | _ _ __ _ ___ __ | (___ ___ __ _ _ __ ___| |__
| | | | '_ \| | | \ \/ / \___ \ / _ \/ _` | '__/ __| '_ \
| |____| | | | | |_| |> < _ ____) | __/ (_| | | | (__| | | |
|______|_|_| |_|\__,_/_/\_\ (_) |_____/ \___|\__,_|_| \___|_| |_|
""")
print(Style.BRIGHT + Fore.YELLOW + '[' + Style.BRIGHT + Fore.RED + '#' + Style.BRIGHT + Fore.YELLOW + '] Options:')
print(Style.BRIGHT + Fore.RED + ' {' + Style.BRIGHT + Fore.WHITE +'1' + Style.BRIGHT + Fore.RED + '}' + Style.BRIGHT + Fore.YELLOW + ' ~> ' + Style.BRIGHT + Fore.WHITE +' Search Amazom.com')
print(Style.BRIGHT + Fore.RED + ' {' + Style.BRIGHT + Fore.WHITE +'2' + Style.BRIGHT + Fore.RED + '}' + Style.BRIGHT + Fore.YELLOW + ' ~> ' + Style.BRIGHT + Fore.WHITE +' Search DuckDuckGo')
print(Style.BRIGHT + Fore.RED + ' {' + Style.BRIGHT + Fore.WHITE +'3' + Style.BRIGHT + Fore.RED + '}' + Style.BRIGHT + Fore.YELLOW + ' ~> ' + Style.BRIGHT + Fore.WHITE +' Search Youtube')
print(Style.BRIGHT + Fore.RED + ' {' + Style.BRIGHT + Fore.WHITE +'4' + Style.BRIGHT + Fore.RED + '}' + Style.BRIGHT + Fore.YELLOW + ' ~> ' + Style.BRIGHT + Fore.WHITE +' Search NewEgg')
print(Style.BRIGHT + Fore.RED + ' {' + Style.BRIGHT + Fore.WHITE +'5' + Style.BRIGHT + Fore.RED + '}' + Style.BRIGHT + Fore.YELLOW + ' ~> ' + Style.BRIGHT + Fore.WHITE +' Search Google')
print(Style.BRIGHT + Fore.RED + ' {' + Style.BRIGHT + Fore.WHITE +'6' + Style.BRIGHT + Fore.RED + '}' + Style.BRIGHT + Fore.YELLOW + ' ~> ' + Style.BRIGHT + Fore.WHITE +' Open VSCODE Web Builder')
print(Style.BRIGHT + Fore.RED + ' {' + Style.BRIGHT + Fore.WHITE +'0' + Style.BRIGHT + Fore.RED + '}' + Style.BRIGHT + Fore.YELLOW + ' ~> ' + Style.BRIGHT + Fore.WHITE +' Back')
llixSearch = (int(input(Style.BRIGHT + Fore.RED + 'Better Day ' + Style.BRIGHT + Fore.YELLOW + '> ' + Style.BRIGHT + Fore.RED + 'Choose ')))
if llixSearch == 1:
var1 = str(input('What would you like to search for. Spaces must be +: '))
os.system('firefox https://www.amazon.ca/s?k='+var1+'')
os.system('python3 main.py')
if llixSearch == 2:
var2 = str(input('What would you like to search for. Spaces must be +: '))
os.system('firefox https://duckduckgo.com/?q='+var2+' ')
os.system('python3 main.py')
if llixSearch == 3:
var3 = str(input('What would you like to search for. Spaces must be +: '))
os.system('firefox https://www.youtube.com/results?search_query='+var3+'')
os.system('python3 main.py')
if llixSearch == 4:
var4 = str(input('What would you like to search for. Spaces must be +: '))
os.system('firefox https://www.newegg.ca/p/pl?d='+var4+'')
os.system('python3 main.py')
if llixSearch == 5:
var5 = str(input('What would you like to search for. Spaces must be +: '))
os.system('firefox https://www.google.com/search?q='+var5+'')
os.system('python3 main.py')
if llixSearch == 6:
os.system('firefox vscode.dev')
os.system('python3 main.py')
if llixSearch == 0:
Linux()
else:
print(f'{Fore.RED + Style.BRIGHT}Please choose a valid input.')
time.sleep(3)
os.system('py main.py')
def sssystem():
clearr()
print(Style.BRIGHT + Fore.YELLOW + '[' + Style.BRIGHT + Fore.RED + '#' + Style.BRIGHT + Fore.YELLOW + '] Options:')
print(Style.BRIGHT + Fore.RED + ' {' + Style.BRIGHT + Fore.WHITE +'1' + Style.BRIGHT + Fore.RED + '}' + Style.BRIGHT + Fore.YELLOW + ' ~> ' + Style.BRIGHT + Fore.WHITE +' Run train')
print(Style.BRIGHT + Fore.RED + ' {' + Style.BRIGHT + Fore.WHITE +'2' + Style.BRIGHT + Fore.RED + '}' + Style.BRIGHT + Fore.YELLOW + ' ~> ' + Style.BRIGHT + Fore.WHITE +' HTOP')
print(Style.BRIGHT + Fore.RED + ' {' + Style.BRIGHT + Fore.WHITE +'3' + Style.BRIGHT + Fore.RED + '}' + Style.BRIGHT + Fore.YELLOW + ' ~> ' + Style.BRIGHT + Fore.WHITE +' List directory')
print(Style.BRIGHT + Fore.RED + ' {' + Style.BRIGHT + Fore.WHITE +'4' + Style.BRIGHT + Fore.RED + '}' + Style.BRIGHT + Fore.YELLOW + ' ~> ' + Style.BRIGHT + Fore.WHITE +' Clone something off of github')
print(Style.BRIGHT + Fore.RED + ' {' + Style.BRIGHT + Fore.WHITE +'5' + Style.BRIGHT + Fore.RED + '}' + Style.BRIGHT + Fore.YELLOW + ' ~> ' + Style.BRIGHT + Fore.WHITE +' Make a file')
print(Style.BRIGHT + Fore.RED + ' {' + Style.BRIGHT + Fore.WHITE +'6' + Style.BRIGHT + Fore.RED + '}' + Style.BRIGHT + Fore.YELLOW + ' ~> ' + Style.BRIGHT + Fore.WHITE +' Run a system command')
print(Style.BRIGHT + Fore.RED + ' {' + Style.BRIGHT + Fore.WHITE +'0' + Style.BRIGHT + Fore.RED + '}' + Style.BRIGHT + Fore.YELLOW + ' ~> ' + Style.BRIGHT + Fore.WHITE +' Back')
Ssystem = (int(input(Style.BRIGHT + Fore.RED + 'Better Day ' + Style.BRIGHT + Fore.YELLOW + '> ' + Style.BRIGHT + Fore.RED + 'Choose ')))
if Ssystem == 1:
os.system('sl')
os.system('python3 main.py')
if Ssystem == 2:
os.system('htop')
os.system('python3 main.py')
if Ssystem == 3:
var7 = (int(input(Style.BRIGHT + Fore.RED + 'Better Day ' + Style.BRIGHT + Fore.YELLOW + '> ' + Style.BRIGHT + Fore.RED + 'What directory would you like to search? ')))
os.system('ls '+var7+'')
os.system('python3 main.py')
if Ssystem == 4:
var8 = (int(input(Style.BRIGHT + Fore.RED + 'Better Day ' + Style.BRIGHT + Fore.YELLOW + '> ' + Style.BRIGHT + Fore.RED + 'What would you like to clone? ')))
os.system('git clone '+var8+'')
os.system('python3 main.py')
if Ssystem == 5:
var9 = (int(input(Style.BRIGHT + Fore.RED + 'Better Day ' + Style.BRIGHT + Fore.YELLOW + '> ' + Style.BRIGHT + Fore.RED + 'WHat file would you like to make? ')))
os.system('touch '+var9+'')
os.system('python3 main.py')
if Ssystem == 6:
clearr()
var10 = (int(input(Style.BRIGHT + Fore.RED + 'Better Day ' + Style.BRIGHT + Fore.YELLOW + '> ' + Style.BRIGHT + Fore.RED + 'What command would you like to run? ')))
os.system(''+var10+'')
os.system('python3 main.py')
if Ssystem == 0:
Linux()
else:
clearr()
print(f'{Fore.RED + Style.BRIGHT}Please choose a valid input.')
time.sleep(3)
os.system('python3 main.py')
#eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
def thing():
clearr()
print(Style.BRIGHT + Fore.YELLOW + '[' + Style.BRIGHT + Fore.RED + '#' + Style.BRIGHT + Fore.YELLOW + '] Options:')
print(Style.BRIGHT + Fore.RED + ' {' + Style.BRIGHT + Fore.WHITE +'1' + Style.BRIGHT + Fore.RED + '}' + Style.BRIGHT + Fore.YELLOW + ' ~> ' + Style.BRIGHT + Fore.WHITE +' Search')
print(Style.BRIGHT + Fore.RED + ' {' + Style.BRIGHT + Fore.WHITE +'2' + Style.BRIGHT + Fore.RED + '}' + Style.BRIGHT + Fore.YELLOW + ' ~> ' + Style.BRIGHT + Fore.WHITE +' System')
print(Style.BRIGHT + Fore.RED + ' {' + Style.BRIGHT + Fore.WHITE +'3' + Style.BRIGHT + Fore.RED + '}' + Style.BRIGHT + Fore.YELLOW + ' ~> ' + Style.BRIGHT + Fore.WHITE + ' For beta users')
print(Style.BRIGHT + Fore.RED + ' {' + Style.BRIGHT + Fore.WHITE +'4' + Style.BRIGHT + Fore.RED + '}' + Style.BRIGHT + Fore.YELLOW + ' ~> ' + Style.BRIGHT + Fore.WHITE + ' For beta users')
print(Style.BRIGHT + Fore.RED + ' {' + Style.BRIGHT + Fore.WHITE +'5' + Style.BRIGHT + Fore.RED + '}' + Style.BRIGHT + Fore.YELLOW + ' ~> ' + Style.BRIGHT + Fore.WHITE + ' For beta users')
print(Style.BRIGHT + Fore.RED + ' {' + Style.BRIGHT + Fore.WHITE +'0' + Style.BRIGHT + Fore.RED + '}' + Style.BRIGHT + Fore.YELLOW + ' ~> ' + Style.BRIGHT + Fore.WHITE +' Back')
pick = (int(input(Style.BRIGHT + Fore.RED + 'Better Day ' + Style.BRIGHT + Fore.YELLOW + '> ' + Style.BRIGHT + Fore.RED + 'Choose ')))
if pick == 1:
search()
if pick == 2:
system()
if pick == 3:
exit()
if pick == 4:
exit()
if pick == 5:
exit()
if pick == 0:
chooseOS()
else:
os.system('cls' if os.name == 'nt' else 'clear')
print(f'{Fore.RED + Style.BRIGHT}Please choose a valid input.')
time.sleep(3)
os.system('py main.py')
def main():
clearr()
print(Style.BRIGHT + """ ____ _ _ _____
| _ \ | | | | | __ \
| |_) | ___| |_| |_ ___ _ __ | | | | __ _ _ _
| _ < / _ \ __| __/ _ \ '__| | | | |/ _` | | | |
| |_) | __/ |_| || __/ | _ | |__| | (_| | |_| |
|____/ \___|\__|\__\___|_| (_) |_____/ \__,_|\__, |
__/ |
|___/ """)
print(Style.BRIGHT + 'Author : ', Fore.RED + Style.BRIGHT + 'Tytan-Codes')
print(Style.BRIGHT + 'Code Type : ', Fore.RED + Style.BRIGHT + 'Python 3')
print(Style.BRIGHT + 'Description : ', Fore.RED + Style.BRIGHT + 'Cool python things')
print(Style.BRIGHT + 'Goal : ', Fore.RED + Style.BRIGHT + 'Make something COOL')
print(Style.BRIGHT + 'Github : ', Fore.RED + Style.BRIGHT +' github.com/Tytan-Codes')
print(Style.BRIGHT + 'Version : ', Fore.RED + Style.BRIGHT + ' Stable, v4.5.3 -- Better Day Project')
print(Style.BRIGHT + '(c) 2022-2033, Tytan-Codes All rights reserved')
print(Style.BRIGHT + Fore.YELLOW + '* ' + Style.BRIGHT + 'Trust Me It\'s good' + Style.BRIGHT + Fore.RED + ' -- ' + Style.BRIGHT + 'I\'m a CODER' + Style.BRIGHT + Fore.YELLOW + ' *')
print('')
enter = input(Style.BRIGHT + Fore.YELLOW + '[' + Style.BRIGHT + Fore.RED + '~' + Style.BRIGHT + Fore.YELLOW + '] ' + Style.BRIGHT + Fore.RED + 'Press Enter to Continue...' )
if enter == "":
os()
else:
print(Style.BRIGHT + Fore.RED +"THATS NOT ENTER, THAT\'s ", enter)
def search():
clearr()
print(f"""{Fore.WHITE + Style.BRIGHT} __ ___ _____ _
\ \ / (_) / ____| | |
\ \ /\ / / _ _ __ | (___ ___ __ _ _ __ ___| |__
\ \/ \/ / | | '_ \ \___ \ / _ \/ _` | '__/ __| '_ \
\ /\ / | | | | | _ ____) | __/ (_| | | | (__| | | |
\/ \/ |_|_| |_| (_) |_____/ \___|\__,_|_| \___|_| |_|
""")
print(Style.BRIGHT + Fore.YELLOW + '[' + Style.BRIGHT + Fore.RED + '#' + Style.BRIGHT + Fore.YELLOW + '] Options:')
print(Style.BRIGHT + Fore.RED + ' {' + Style.BRIGHT + Fore.WHITE +'1' + Style.BRIGHT + Fore.RED + '}' + Style.BRIGHT + Fore.YELLOW + ' ~> ' + Style.BRIGHT + Fore.WHITE +' Search Amazom.com')
print(Style.BRIGHT + Fore.RED + ' {' + Style.BRIGHT + Fore.WHITE +'2' + Style.BRIGHT + Fore.RED + '}' + Style.BRIGHT + Fore.YELLOW + ' ~> ' + Style.BRIGHT + Fore.WHITE +' Search DuckDuckGo')
print(Style.BRIGHT + Fore.RED + ' {' + Style.BRIGHT + Fore.WHITE +'3' + Style.BRIGHT + Fore.RED + '}' + Style.BRIGHT + Fore.YELLOW + ' ~> ' + Style.BRIGHT + Fore.WHITE +' Search Youtube')
print(Style.BRIGHT + Fore.RED + ' {' + Style.BRIGHT + Fore.WHITE +'4' + Style.BRIGHT + Fore.RED + '}' + Style.BRIGHT + Fore.YELLOW + ' ~> ' + Style.BRIGHT + Fore.WHITE +' Search NewEgg')
print(Style.BRIGHT + Fore.RED + ' {' + Style.BRIGHT + Fore.WHITE +'5' + Style.BRIGHT + Fore.RED + '}' + Style.BRIGHT + Fore.YELLOW + ' ~> ' + Style.BRIGHT + Fore.WHITE +' Search Google')
print(Style.BRIGHT + Fore.RED + ' {' + Style.BRIGHT + Fore.WHITE +'6' + Style.BRIGHT + Fore.RED + '}' + Style.BRIGHT + Fore.YELLOW + ' ~> ' + Style.BRIGHT + Fore.WHITE +' Open VSCODE Web Builder')
print(Style.BRIGHT + Fore.RED + ' {' + Style.BRIGHT + Fore.WHITE +'0' + Style.BRIGHT + Fore.RED + '}' + Style.BRIGHT + Fore.YELLOW + ' ~> ' + Style.BRIGHT + Fore.WHITE +' Back')
search = (int(input(Style.BRIGHT + Fore.RED + 'Better Day ' + Style.BRIGHT + Fore.YELLOW + '> ' + Style.BRIGHT + Fore.RED + 'Choose ')))
if search == 1:
var1 = str(input('What would you like to search for. Spaces must be +: '))
os.system('start firefox https://www.amazon.ca/s?k='+var1+'')
os.system('py main.py')
if search == 2:
var2 = str(input('What would you like to search for. Spaces must be +: '))
os.system('start firefox https://duckduckgo.com/?q='+var2+' ')
os.system('py main.py')
if search == 3:
var3 = str(input('What would you like to search for. Spaces must be +: '))
os.system('start firefox https://www.youtube.com/results?search_query='+var3+'')
os.system('py main.py')
if search == 4:
var4 = str(input('What would you like to search for. Spaces must be +: '))
os.system('start firefox https://www.newegg.ca/p/pl?d='+var4+'')
os.system('py main.py')
if search == 5:
var5 = str(input('What would you like to search for. Spaces must be +: '))
os.system('start firefox https://www.google.com/search?q='+var5+'')
os.system('py main.py')
if search == 6:
os.system('start firefox vscode.dev')
os.system('py main.py')
if search == 0:
thing()
else:
clearr()
print(f'{Fore.RED + Style.BRIGHT}Please choose a valid input.')
time.sleep(3)
os.system('py main.py')
def system():
clearr()
print(f"""{Fore.WHITE+ Style.BRIGHT} __ ___ _____ _
\ \ / (_) / ____| | |
\ \ /\ / / _ _ __ | (___ _ _ ___| |_ ___ _ __ ___
\ \/ \/ / | | '_ \ \___ \| | | / __| __/ _ \ '_ ` _ \
\ /\ / | | | | | _ ____) | |_| \__ \ || __/ | | | | |
\/ \/ |_|_| |_| (_) |_____/ \__, |___/\__\___|_| |_| |_|
__/ |
|___/ """)
print(Style.BRIGHT + Fore.YELLOW + '[' + Style.BRIGHT + Fore.RED + '#' + Style.BRIGHT + Fore.YELLOW + '] Options:')
print(Style.BRIGHT + Fore.RED + ' {' + Style.BRIGHT + Fore.WHITE +'1' + Style.BRIGHT + Fore.RED + '}' + Style.BRIGHT + Fore.YELLOW + ' ~> ' + Style.BRIGHT + Fore.WHITE +' Run train')
print(Style.BRIGHT + Fore.RED + ' {' + Style.BRIGHT + Fore.WHITE +'2' + Style.BRIGHT + Fore.RED + '}' + Style.BRIGHT + Fore.YELLOW + ' ~> ' + Style.BRIGHT + Fore.WHITE +' HTOP')
print(Style.BRIGHT + Fore.RED + ' {' + Style.BRIGHT + Fore.WHITE +'3' + Style.BRIGHT + Fore.RED + '}' + Style.BRIGHT + Fore.YELLOW + ' ~> ' + Style.BRIGHT + Fore.WHITE +' List directory')
print(Style.BRIGHT + Fore.RED + ' {' + Style.BRIGHT + Fore.WHITE +'4' + Style.BRIGHT + Fore.RED + '}' + Style.BRIGHT + Fore.YELLOW + ' ~> ' + Style.BRIGHT + Fore.WHITE +' Clone something off of github')
print(Style.BRIGHT + Fore.RED + ' {' + Style.BRIGHT + Fore.WHITE +'5' + Style.BRIGHT + Fore.RED + '}' + Style.BRIGHT + Fore.YELLOW + ' ~> ' + Style.BRIGHT + Fore.WHITE +' Make a file')
print(Style.BRIGHT + Fore.RED + ' {' + Style.BRIGHT + Fore.WHITE +'6' + Style.BRIGHT + Fore.RED + '}' + Style.BRIGHT + Fore.YELLOW + ' ~> ' + Style.BRIGHT + Fore.WHITE +' Run a system command')
print(Style.BRIGHT + Fore.RED + ' {' + Style.BRIGHT + Fore.WHITE +'0' + Style.BRIGHT + Fore.RED + '}' + Style.BRIGHT + Fore.YELLOW + ' ~> ' + Style.BRIGHT + Fore.WHITE +' Exit')
System = (int(input(Style.BRIGHT + Fore.RED + 'Better Day ' + Style.BRIGHT + Fore.YELLOW + '> ' + Style.BRIGHT + Fore.RED + 'Choose ')))
if System == 1:
os.system('sl')
os.system('py main.py')
if System == 2:
os.system('htop')
os.system('py main.py')
if System == 3:
var7 = (int(input(Style.BRIGHT + Fore.RED + 'Better Day ' + Style.BRIGHT + Fore.YELLOW + '> ' + Style.BRIGHT + Fore.RED + 'What directory would you like to search? ')))
os.system('ls '+var7+'')
os.system('py main.py')
if System == 4:
var8 = (int(input(Style.BRIGHT + Fore.RED + 'Better Day ' + Style.BRIGHT + Fore.YELLOW + '> ' + Style.BRIGHT + Fore.RED + 'What would you like to clone? ')))
os.system('git clone '+var8+'')
os.system('py main.py')
if System == 5:
var9 = (int(input(Style.BRIGHT + Fore.RED + 'Better Day ' + Style.BRIGHT + Fore.YELLOW + '> ' + Style.BRIGHT + Fore.RED + 'WHat file would you like to make? ')))
os.system('type nul > '+var9+'')
os.system('py main.py')
if System == 6:
clearr()
var10 = (int(input(Style.BRIGHT + Fore.RED + 'Better Day ' + Style.BRIGHT + Fore.YELLOW + '> ' + Style.BRIGHT + Fore.RED + 'What command would you like to run? ')))
os.system(''+var10+'')
os.system('py main.py')
if System == 0:
exit()
else:
clearr()
print(f'{Fore.RED + Style.BRIGHT}Please choose a valid input.')
time.sleep(3)
os.system('py main.py')
#args
parser = argparse.ArgumentParser(description='It makes you day easier as a developer. As this script is not finished please make sure to look at the github for the latest updates.')
parser.add_argument('--Windows', action='store_true', help='Go stratight into Windows mode')
parser.add_argument('--Linux', action='store_true', help='Go straight into Linux mode')
args = parser.parse_args()
if args.Windows:
thing()
if args.Linux:
Linux()
main()