Skip to content

Commit

Permalink
Ash515#11 completely resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
realhunter7869 committed Jan 3, 2021
1 parent 0699d7f commit d7222cc
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 79 deletions.
3 changes: 0 additions & 3 deletions .idea/.gitignore

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/AshTech-AI_Personal_Voice_Assistant.iml

This file was deleted.

17 changes: 0 additions & 17 deletions .idea/aws.xml

This file was deleted.

19 changes: 0 additions & 19 deletions .idea/inspectionProfiles/Project_Default.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/inspectionProfiles/profiles_settings.xml

This file was deleted.

4 changes: 0 additions & 4 deletions .idea/misc.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

22 changes: 14 additions & 8 deletions Voice Assistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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")
Expand All @@ -473,15 +478,16 @@ 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")
file = open("jarvis.txt", "r")
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.")
Expand Down

0 comments on commit d7222cc

Please sign in to comment.