()
| 110 | |
| 111 | |
| 112 | def wishme(): |
| 113 | # This function wishes user |
| 114 | hour = int(datetime.datetime.now().hour) |
| 115 | if hour >= 0 and hour < 12: |
| 116 | speak("Good Morning!") |
| 117 | elif hour >= 12 and hour < 18: |
| 118 | speak("Good Afternoon!") |
| 119 | else: |
| 120 | speak("Good Evening!") |
| 121 | speak("I m Jarvis ! how can I help you sir") |
| 122 | |
| 123 | |
| 124 | # obtain audio from the microphone |