Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion desktopAssistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,15 @@ def assistant(command):
print('Done!')
else:
pass


#for example ask "where is london"
elif "where is" in command:
command = command.split(" ")
location = command[2]
talkToMe("Just A Second Sir, I will show you where " + location + " is.")
URL = "https://www.google.com/maps/place/" + location + "/&"
webbrowser.open(URL, new=2)

elif 'what\'s up' in command:
talkToMe('Just doing my thing')
elif 'joke' in command:
Expand Down