-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommand.py
More file actions
39 lines (37 loc) · 1.25 KB
/
Copy pathcommand.py
File metadata and controls
39 lines (37 loc) · 1.25 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
from datetime import datetime,date
import psutil
import os
import subprocess
import signal
import webbrowser
from speak import speak
from example import example
from tempCodeRunnerFile import wordout
def process(c):
if "motivate" in c.lower():
a=wordout()
speak(a)
elif("open google") in c.lower():
webbrowser.open("https://www.google.co.uk/")
elif("open youtube") in c.lower():
webbrowser.open("https://www.youtube.com/")
elif("open whatsapp") in c.lower():
webbrowser.open("https://web.whatsapp.com/")
elif "close google" in c.lower():
speak("Closing the Google")
os.system("taskkill /f /im chrome.exe")
elif "sleep" in c:
speak("Sleeping for now. bye sir !")
elif "work" in c.lower() or "work" in c.lower():
speak("showing the task")
print("showing the task")
import subprocess
subprocess.call(["python", "la.py"])
speak("updated the task sir")
elif "question" in c.lower() or "explain" in c.lower() or "doubt" in c.lower:
speak("I can open gemini or gpt to solve your queries ")
speak("which one you want master")
from aibaat import aiki
aiki()
else:
speak("didn't understand master")