-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
142 lines (135 loc) · 6.37 KB
/
Copy pathsetup.py
File metadata and controls
142 lines (135 loc) · 6.37 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
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
# Title = jolanka voice assistant setup file
# Author = jolanka
# Version = 1.2.0alpha
# Tested on = Windows 10 pro, Kali linux
#import Offical Library
import time
import sys
import os
from platform import system
import datetime
#Function Written To Download Libraries
an=datetime.datetime.now()
saat=datetime.datetime.strftime(an, '%X')
def package():
ani()
if system()=="Linux":
os.system("clear")
if system()=="Windows":
os.system("cls")
if system() == "Linux":
try:
#download SpeechRecognition library for linux
os.system("pip install SpeechRecognition")
print(f"[{saat}][+] Speech Recognition Kütüphanesi Yüklendi ✔️")
#download gtts library for linux
os.system("pip install gtts")
print(f"[{saat}][+] GTTS Kütüphanesi Yüklendi ✔️")
#download playsound library for linux
os.system("pip install playsound")
print(f"[{saat}][+] Playsound Kütüphanesi Yüklendi ✔️")
#download requests library for linux
os.system("pip3 install requests")
print(f"[{saat}] [+] Requests Kütüphanesi Yüklendi ✔️")
#download ip2geotools library for linux
os.system("pip install ip2geotools")
print(f"[{saat}][+] ip2geotools Kütüphanesi Yüklendi ✔️")
#dowload colorama library for linux
os.system("pip install colorama")
print(f"[{saat}] [+] Colorama KÜtüphanesi Yüklendi ✔️")
#download sqlite library for linuz
os.system("pip install pysqlite3")
print(f"[{saat}] [+] SQLite Kütüphanesi Yüklendi ✔️ ")
time.sleep(1)
os.system("clear")
except ImportError:
print("[+] Bu Program Python3 sürümü İle Çalışır Lütfen Güncelleyin")
os.system("python --version")
exit()
if system() == "Windows":
try:
#download SpeechRecognition library for windows
os.system("pip install SpeechRecognition")
print(f"[{saat}][+] Speech Recognition Kütüphanesi Yüklendi ✔️")
#download gtts library for windows
os.system("pip install gtts")
print(f"[{saat}][+] GTTS Kütüphanesi Yüklendi ✔️")
#download playsound library for windows
os.system("pip install playsound")
print(f"[{saat}][+] Playsound Kütüphanesi Yüklendi ✔️")
#download requests library for windows
os.system("pip3 install requests")
print(f"[{saat}][+] Requests Kütüphanesi Yüklendi ✔️")
#download ip2geotools library for windows
os.system("pip install ip2geotools")
print(f"[{saat}][+] ip2geotools Kütüphanesi Yüklendi ✔️")
#download colorama library for windows
os.system("pip install colorama")
print(f"[{saat}][+] Colorama Kütüphanesi Yüklendi ✔️")
#download sqlite library for winows
os.system("pip install pysqlite3")
print(f"[{saat}][+] SQLite Kütüphanesi Yüklendi ✔️ ")
time.sleep(1)
os.system("cls")
except ImportError:
print("[+] Bu Program Python3 sürümü İle Çalışır Lütfen Güncelleyin")
os.system("python --version")
exit()
print(f"[{saat}][+] Yükleme ve Kurulum Tamamlandı. Güle Güle Kullanın ... 😊")
çalıştırma_inputu = input(f"[{saat}][+] Programı Çalıştırmak İstermisiniz (yes/no) :")
if çalıştırma_inputu=="yes:" or çalıştırma_inputu=="YES":
if system()=="Linux":
ani()
os.system("python main.py")
if system()=="Windows":
ani()
os.system("python main.py")
if çalıştırma_inputu == "no" or çalıştırma_inputu =="NO":
if system()=="Windows":
os.system("clear")
if system()=="Windows":
os.system("cls")
print(f"[{saat}][+] Eğer İsterseniz (python main.py) Komutunu Çalıştırmanız Yeterli . Görüşürüz Çünkü Tekrar Görüşmek Zorundasın 😊 ")
else:
print(f"[{saat}][!] Lütfen Geçerli Bir Seçenek Giriniz .")
#// setup option menu
print("[+] 👾Sesli Asistana Hoşgeldiniz👾 ")
print("[+] Programı Kurmak İçin ( 1 ) Tuşuna Basın.")
print("[+] Programla İlgili Detayları Almak İçin ( 2 ) Tuşuna Basın ")
print("[+] Programı Kapatmak İçin ( 3 ) Tuşuna Basın ")
#Starting animation
a=input("Lütfen Seçeneği Girin = ")
def ani():
print("[+] Program Çalıştırılıyor :")
animation = ["■□□□□□□□□]","[■■□□□□□□□□]", "[■■■□□□□□□□]", "[■■■■□□□□□□]", "[■■■■■□□□□□]", "[■■■■■■□□□□]", "[■■■■■■■□□□]", "[■■■■■■■■□□]", "[■■■■■■■■■□]", "[■■■■■■■■■■]"]
for i in range(len(animation)):
time.sleep(0.1)
sys.stdout.write("\r" + animation[i % len(animation)])
sys.stdout.flush()
print("\n")
#Closing animation
def program_kapa_ani():
print("[+] Program Kapatılıyor :")
animation = ["■□□□□□□□□]","[■■□□□□□□□□]", "[■■■□□□□□□□]", "[■■■■□□□□□□]", "[■■■■■□□□□□]", "[■■■■■■□□□□]", "[■■■■■■■□□□]", "[■■■■■■■■□□]", "[■■■■■■■■■□]", "[■■■■■■■■■■]"]
for i in range(len(animation)):
time.sleep(0.1)
sys.stdout.write("\r" + animation[i % len(animation)])
sys.stdout.flush()
print("\n")
if a=="1":
package()
#start about file
elif a=="2":
print("[+] Detaylar Açılıyor .")
if system()== "Linux":
os.system("cat ABOUT.txt")
if system()=="Windows":
about_file = open("ABOUT.txt", encoding="utf-8")
read_about_file = about_file.read()
print(read_about_file)
#kapama animasyonu
elif a=="3":
program_kapa_ani()
exit()
else:
print("[+] Düzgün Bir Şey Girer Misin ? Yoksa asistan üzülür .")