From e2368258137cf5eeaa2f4b6067ce0362878117b7 Mon Sep 17 00:00:00 2001 From: dipu007 <72186394+dipu007@users.noreply.github.com> Date: Thu, 1 Oct 2020 14:34:59 +0530 Subject: [PATCH] Update JARVIS.py --- JARVIS/JARVIS.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/JARVIS/JARVIS.py b/JARVIS/JARVIS.py index 5d036da966c..9f107edc960 100644 --- a/JARVIS/JARVIS.py +++ b/JARVIS/JARVIS.py @@ -31,6 +31,18 @@ Query = r.recognize_google(audio, language = 'en-IN', show_all = True ) print(Query) +# he/she wish me +def wishMe(): + hour = int(datetime.datetime.now().hour) + if hour>= 0 and hour<12: + speak("Good Morning Sir !") + + elif hour>= 12 and hour<18: + speak("Good Afternoon Sir !") + + else: + speak("Good Evening Sir !") + # Run Application with Voice Command Function def get_app(Q):