示例#1
0
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')

    weather()
    speak('I am JARVIS. Please tell me how can I help you SIR?')
示例#2
0
文件: jarvis.py 项目: Burak322/Draig
def wishMe():
    hour = int(datetime.datetime.now().hour)
    if hour >= 0 and hour < 12:
        print("Günaydın efendim")
        speak("Günaydın efendim")
    elif hour >= 12 and hour < 18:
        print("İyi öğleden sonları efendim")
        speak("İyi öğleden sonları efendim")

    else:
        speak('İyi akşamlar efendim')
        print("İyi akşamlar efendim")

    weather()
    speak('Ben Draig. Size nasıl yardımcı olabilirim efendim?')
示例#3
0
            print(results)
            p.speak(results)

        elif 'location' in s:
            p.speak('What is the location?')
            location = takeCommand()
            url = 'https://google.nl/maps/place/' + location + '/&amp;'
            webbrowser.get('chrome').open_new_tab(url)
            p.speak('Here is the location ' + location)

        elif 'shutdown' in s:
            os.system('shutdown /p /f')

        elif 'weather' in s:
            p.speak("The current weather conditions are:")
            weather()

        elif 'dictionary' in s:
            p.speak('What you want to search in your intelligent dictionary?')
            translate(takeCommand())


        elif "open youtube" in s:
            webbrowser.open("youtube.com")
            p.speak("opening Youtube")
            print("opening Youtube")

        elif "open google" in s:
            webbrowser.open("google.com")
            p.speak("opening google")
            print("opening google")