-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtelebot.py
More file actions
36 lines (36 loc) · 1001 Bytes
/
telebot.py
File metadata and controls
36 lines (36 loc) · 1001 Bytes
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
import os
import shutil
x = 1
clear = 'clear' #limpar terminal
reboot = 'sudo reboot'
htop = 'htop' #abrir htop
while (x == 1):
print('')
print("Telebot v5 ")
total2, used2, free2 = shutil.disk_usage("/")
print("======================")
print("|Interna Free: %d GB " % (free2 // (2**30)))
print("======================")
print("|1.Processos ")
print('|2.Download ')
print('|3.Menu de funções ')
print("|4.Reiniciar servidor")
print("======================")
opcao = (input("Escolha Opção:"))
if opcao == "1" or opcao == "htop":
os.system(htop)
os.system(clear)
if opcao == '2':
mnt=input("Local de Download:")
link=input("Coloque link: ")
baixa1 ='aria2c -d '+mnt+' --seed-time=0 --seed-ratio=0.0'+' "'+link+'"'
os.system(baixa1)
os.system(clear)
if opcao == '3':
menu="python3 main.py"
os.system(menu)
x=2
if opcao == '4' or opcao == 'reboot':
os.system(reboot)
else:
os.system(opcao)