mirror of
https://github.com/Dasemu/DesktopAssistant.git
synced 2026-10-13 13:39:44 +00:00
Merge branch 'main' into issue_16
This commit is contained in:
10
Jarvis2.py
10
Jarvis2.py
@@ -15,7 +15,7 @@ import wikipedia
|
||||
import gui
|
||||
|
||||
print("Initializing Jarvis....")
|
||||
MASTER = getpass.getuser()
|
||||
master = getpass.getuser()
|
||||
|
||||
engine = pyttsx3.init("nsss")
|
||||
voices = engine.getProperty("voices")
|
||||
@@ -61,11 +61,11 @@ def print_and_speak(text):
|
||||
def wish_me():
|
||||
hour = datetime.datetime.now().hour
|
||||
if hour < 12:
|
||||
speak("Good Morning" + MASTER)
|
||||
speak("Good Morning" + master)
|
||||
elif hour < 18:
|
||||
speak("Good Afternoon" + MASTER)
|
||||
speak("Good Afternoon" + master)
|
||||
else:
|
||||
speak("Good Evening" + MASTER)
|
||||
speak("Good Evening" + master)
|
||||
|
||||
# speak("Hey I am Jarvis. How may I help you")
|
||||
|
||||
@@ -180,4 +180,4 @@ def execute_the_command_said_by_user():
|
||||
|
||||
|
||||
gui.set_speak_command(execute_the_command_said_by_user)
|
||||
gui.mainloop()
|
||||
gui.mainloop()
|
||||
Reference in New Issue
Block a user