From d7222ccf5db9c872d540efa02f6808242e017c93 Mon Sep 17 00:00:00 2001 From: realhunter7869 Date: Sun, 3 Jan 2021 19:29:00 +0530 Subject: [PATCH] #11 completely resolved --- .idea/.gitignore | 3 --- .idea/AshTech-AI_Personal_Voice_Assistant.iml | 8 ------- .idea/aws.xml | 17 -------------- .idea/inspectionProfiles/Project_Default.xml | 19 ---------------- .../inspectionProfiles/profiles_settings.xml | 6 ----- .idea/misc.xml | 4 ---- .idea/modules.xml | 8 ------- .idea/vcs.xml | 6 ----- Voice Assistant.py | 22 ++++++++++++------- 9 files changed, 14 insertions(+), 79 deletions(-) delete mode 100644 .idea/.gitignore delete mode 100644 .idea/AshTech-AI_Personal_Voice_Assistant.iml delete mode 100644 .idea/aws.xml delete mode 100644 .idea/inspectionProfiles/Project_Default.xml delete mode 100644 .idea/inspectionProfiles/profiles_settings.xml delete mode 100644 .idea/misc.xml delete mode 100644 .idea/modules.xml delete mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore deleted file mode 100644 index 26d3352..0000000 --- a/.idea/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml diff --git a/.idea/AshTech-AI_Personal_Voice_Assistant.iml b/.idea/AshTech-AI_Personal_Voice_Assistant.iml deleted file mode 100644 index d0876a7..0000000 --- a/.idea/AshTech-AI_Personal_Voice_Assistant.iml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/aws.xml b/.idea/aws.xml deleted file mode 100644 index 1d6b5c3..0000000 --- a/.idea/aws.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml deleted file mode 100644 index f280864..0000000 --- a/.idea/inspectionProfiles/Project_Default.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml deleted file mode 100644 index 105ce2d..0000000 --- a/.idea/inspectionProfiles/profiles_settings.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml deleted file mode 100644 index a2e120d..0000000 --- a/.idea/misc.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index 1004744..0000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 94a25f7..0000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/Voice Assistant.py b/Voice Assistant.py index 57803d3..73e0527 100644 --- a/Voice Assistant.py +++ b/Voice Assistant.py @@ -272,23 +272,23 @@ def user_mood(): statement1 = takeCommand().lower() if(statement1 == 0): continue - if 'LinkedIn' in statement1: + if 'linkedIn' in statement1: webbrowser.open_new_tab("https://www.linkedin.com/jobs") speak("LinkedIn is open now") time.sleep(2) - elif 'Indeed' in statement1: + elif 'indeed' in statement1: webbrowser.open_new_tab("https://www.indeed.com/jobs") speak("Indeed is open now") time.sleep(2) - elif 'Glassdoor' in statement1: + elif 'glassdoor' in statement1: webbrowser.open_new_tab("https://www.glassdoor.com/jobs") speak("Glassdoor is open now") time.sleep(2) - elif 'HackerRank' in statement1: + elif 'hackerrank' in statement1: webbrowser.open_new_tab("https://www.hackerrank.com/jobs/search") speak("HackerRank is open now") time.sleep(2) - elif 'Naukri' in statement1: + elif 'naukri' in statement1: webbrowser.open_new_tab("https://www.naukri.com/jobs") speak("Naukri is open now") time.sleep(2) @@ -453,11 +453,16 @@ def user_mood(): speak("Opening Calculator") os.system("start calc") + elif 'recycle bin' in statement or 'deleted files' in statement: + speak('Opening recycling bin') + os.system('start shell:RecycleBinFolder') + elif "log off" in statement or "sign out" in statement: speak( "Ok , your pc will log off in 10 sec make sure you exit from all applications") subprocess.call(["shutdown", "/l"]) -#Writing notes + + #Writing notes elif "write a note" in statement: speak("What should i write, sir") print("J: What should i write, sir") @@ -473,7 +478,8 @@ def user_mood(): file.write(note) else: file.write(note) -#Showing note + + #Showing note elif "show the note" in statement: speak("Showing Notes") print("J: Showing Notes") @@ -481,7 +487,7 @@ def user_mood(): print(file.read()) speak(file.read(6)) -#whatsapp messaging + #whatsapp messaging elif 'whatsapp' in statement: try: print("J: To whom should i send? Can you please type in the name.")