-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuninstall.py
73 lines (56 loc) · 1.58 KB
/
uninstall.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
# -*- coding: utf-8 -*-
#############################
# UNINSTALL TAYLOR BOT SISTEM #
#############################
import os, sys, time, platform
if platform.system() == 'Linux':
clear = 'clear'
else:
clear = 'cls'
try:
import pyfiglet
except:
os.system('pip install pyfiglet')
os.system('CLS')
import pyfiglet
__version__ = '1.0.0 [Beta]'
__author__ = '@FrancisTaylor'
__github__ = 'https://github.com/Francis-Taylor'
requeriment = 'discord.py redis pyfiglet requests python-aiml speedtest-cli' # DON'T USE ','
def figlets():
#########################################
print('System Powered by ') #
f = pyfiglet.Figlet(font='doom') #
print(f.renderText("Cybion")) #
print('Author: '+__author__) #
print('Version: '+__version__) #
print('Git: '+ __github__) #
print('='*110+'\n') #
#########################################
os.system('CLS')
figlets()
pergunta = input('\nDo you want to start the uninstallation? [Y/N]\n>>> ')
if pergunta.lower() != 'y':
sys.exit()
else:
print('\nStarting!...')
print('Listing Modules...\n')
modules = requeriment
print(modules.replace(' ','\n'))
print('\nRunning the Pip to uninstall modules...')
os.system('pip uninstall '+ modules)
print('\nThe system was successfully uninstalled!')
print('\nCybion thanks for using our system! The system will start in 5 seconds ...')
time.sleep(1)
print(5)
time.sleep(1)
print(4)
time.sleep(1)
print(3)
time.sleep(1)
print(2)
time.sleep(1)
print(1)
time.sleep(1)
os.system('CLS')
sys.exit()