From 41783b11da78433a556f9a2876011fa814b49118 Mon Sep 17 00:00:00 2001 From: Revanth <109272714+revanth1718@users.noreply.github.com> Date: Mon, 11 Mar 2024 17:10:21 +0530 Subject: [PATCH 1/3] Added comments in jarvis file --- jarvis.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jarvis.py b/jarvis.py index 480749d..e87ae4a 100644 --- a/jarvis.py +++ b/jarvis.py @@ -105,7 +105,7 @@ def takeCommand(): # takes microphone inout and returns output email = f.readline().strip() password = f.readline().strip() -def sendemail(to, content): +def sendemail(to, content): #function to send email server = smtplib.SMTP('smtp.gmail.com', 587) server.ehlo() server.starttls() @@ -113,7 +113,7 @@ def sendemail(to, content): server.sendmail(email, to, content) server.close() -def readBooks(): +def readBooks(): # function to read books speak("Enter the path of the file including it's name.") filePath = input("Enter the path of the file (including it's name): ") try: @@ -135,7 +135,7 @@ def readBooks(): except: speak("This Book is not Present!") -def NasaNews(API_KEY): +def NasaNews(API_KEY): # function to get news from NASA speak("On which day would you like to know ?") Date = input("Enter date as (2022-10-21): ") From fdbcb51db13a842babcf21481aa654a571e65367 Mon Sep 17 00:00:00 2001 From: Revanth <109272714+revanth1718@users.noreply.github.com> Date: Mon, 18 Mar 2024 22:08:18 +0530 Subject: [PATCH 2/3] added comments --- jarvis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jarvis.py b/jarvis.py index e87ae4a..ef0c677 100644 --- a/jarvis.py +++ b/jarvis.py @@ -276,7 +276,7 @@ def move_snake(): if not food_collision(): snake.pop(0) - + # Check for collision with walls if snake[-1][0] > w / 2: snake[-1][0] -= w elif snake[-1][0] < - w / 2: From a7daa4c2a8159b5a153954526aafe259cca9ce01 Mon Sep 17 00:00:00 2001 From: Revanth <109272714+revanth1718@users.noreply.github.com> Date: Mon, 18 Mar 2024 22:09:33 +0530 Subject: [PATCH 3/3] added cmt 2 --- jarvis.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jarvis.py b/jarvis.py index ef0c677..6bc0573 100644 --- a/jarvis.py +++ b/jarvis.py @@ -205,11 +205,11 @@ def NasaNews(API_KEY): # function to get news from NASA elif 'stop' in query or 'shut up' in query or 'sleep' in query: speak('Alright Sir! Ping me up when you need me again') sys.exit(0) - +# break elif 'thank you' in query or 'appreciate' in query: speak("It's my duty to assist you anytime sir") - +# break elif 'open youtube' in query: speak("Here We Go") webbrowser.open("youtube.com")