-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathPythonbot.py
More file actions
63 lines (32 loc) Β· 1.13 KB
/
Pythonbot.py
File metadata and controls
63 lines (32 loc) Β· 1.13 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
import os
import pyttsx3
pyttsx3.speak("hello how may i help you sir")
while True:
pyttsx3.speak("Enter cmnd u want me to open")
a=input("Enter cmnd u want me to run:")
print(a)
b=a.lower()
if ("run" in b) and("chrome" in b):
os.system("start chrome")
pyttsx3.speak("opening please wait")
elif ("run" in b) and ("vlc" in b):
os.system("start vlc")
pyttsx3.speak("opening please wait")
elif ("run" in b) and ("notepad" in b):
os.system("start notepad")
pyttsx3.speak("opening please wait")
elif ("run" in b) and ("wordpad" in b):
os.system("start wordpad")
pyttsx3.speak("opening please wait")
elif ("run" in b) and ("wmplayer" in b):
os.system("start wmplayer")
pyttsx3.speak("opening please wait")
elif ("run" in b ) and ("mspaint" in b):
os.system("start mspaint")
pyttsx3.speak("opening please wait")
elif ("run" in b) and ("excel" in b):
os.system("start excel")
pyttsx3.speak("opening please wait")
elif("hey" in b) and (("quit" in b) or ("bye" in b)):
pyttsx3.speak("exiting please wait hope you like my service see u soon ")
break