Skip to content

Commit 565dea4

Browse files
authored
Update main.py
1 parent f508d3f commit 565dea4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

main.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ def start(query):
7474
result=wikipedia.summary(query,sentences=2)
7575
print(result)
7676
speak(result)
77-
77+
78+
#To display weather reports
7879
elif 'weather report' in query.lower() or 'weather' in query.lower():
7980
api_address='http://api.openweathermap.org/data/2.5/weather?q=Kolkata&appid= your app id ' #you can get it from openweathermap.org
8081
json_data=requests.get(api_address).json()
@@ -155,6 +156,7 @@ def start(query):
155156
code_location="F:\\visualstudiocodes\\Code.exe"
156157
os.startfile(code_location)
157158

159+
#to send mail
158160
elif 'mail to' in query.lower() or 'mail' in query.lower():
159161
try:
160162
speak("Whom should i send the message ?")

0 commit comments

Comments
 (0)