-
Notifications
You must be signed in to change notification settings - Fork 0
/
Main.py
38 lines (37 loc) · 1.62 KB
/
Main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
from Features.Open import OpenExe
from Features.send_email import send_email_prompt
from Features.latest_news import latestnews
def MainTaskExecution(Query):
try:
if "open" in Query:
Value = OpenExe(Query)
return Value
elif "visit" in Query:
Value = OpenExe(Query)
return Value
elif "search" in Query:
Value = OpenExe(Query)
return Value
elif "temperature" in Query:
Value = OpenExe(Query)
return Value
elif "weather" in Query:
Value = OpenExe(Query)
return Value
# elif "date" in Query and "time" in Query:
# Value= OpenExe(Query)
# return Value
elif "present date" in Query or "current date" in Query or "what is the date" in Query or "whats the date" in Query or "what's the date" in Query or "what date it is" in Query or "what date is it" in Query or "today's date" in Query or " todays date" in Query :
Value= OpenExe(Query)
return Value
elif "present time" in Query or "current time" in Query or "what is the time" in Query or "whats the time" in Query or "what's the time" in Query or "what time it is" in Query or "what time is it" in Query:
Value= OpenExe(Query)
return Value
elif "send" in Query and "email" in Query :
Value= send_email_prompt()
return Value
elif "news" in Query or "headline" in Query :
Value= latestnews()
return Value
except:
pass