Skip to content

Commit

Permalink
Update taskexecution.py
Browse files Browse the repository at this point in the history
Signed-off-by: Somesh Raj <[email protected]>
  • Loading branch information
Someshsw1109 authored May 15, 2024
1 parent e2120ec commit 93d83e8
Showing 1 changed file with 6 additions and 24 deletions.
30 changes: 6 additions & 24 deletions taskexecution.py
Original file line number Diff line number Diff line change
@@ -1,23 +1,14 @@
#Function used in this python file is of two types
#1- Non-Input
# ex:- Time, Date, Speedtest


import datetime
from Speak import Say
import cv2
from email import encoders, message
from email.mime.base import MIMEBase
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
import smtplib
import requests






def Time():
time = datetime.datetime.now().strftime("%I:%M %p")
Say(time)
Expand Down Expand Up @@ -45,10 +36,6 @@ def WishMe():

Say("Hey sir I am your personal assistant how may i help you.... please tell me..... i am always there for you sir....")





def NonInputExecution(query):
query = str(query)

Expand All @@ -61,15 +48,9 @@ def NonInputExecution(query):
elif "day" in query:
Day()




#2 - Input
# ex:- google search, wikipedia




def InputExecution(tag,query):

if "wikipedia" in tag:
Expand Down Expand Up @@ -143,10 +124,6 @@ def InputExecution(tag,query):
cap.release()
cv2.destroyAllWindows()





# elif "State drive" in tag:
# query = str(query).replace("SSD", "")
# import os
Expand Down Expand Up @@ -242,4 +219,9 @@ def InputExecution(tag,query):
resInfo = kit.info(query, lines=2)
print(resInfo)
Say(f"Sir, {resInfo}")


elif "Open My Game website" in tag:
query = str(query).replace("Open My Game website", "")
Say("Ok sir please wait, I'm opening your 2048 Game website")
import webbrowser as wb
wb.open("https://2048-sr-tech.vercel.app/")

0 comments on commit 93d83e8

Please sign in to comment.