From 55d3b6bb6e5eac7fb2f070abbfbd00e53f8ff32d Mon Sep 17 00:00:00 2001 From: Neesham Date: Tue, 25 Oct 2022 12:51:06 +0530 Subject: [PATCH 1/2] Added new commands --- Alexa.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Alexa.py b/Alexa.py index 6587514..1748de8 100644 --- a/Alexa.py +++ b/Alexa.py @@ -87,7 +87,12 @@ def call_Anuja(): elif 'What is Engineering?' in command: cmd = talk('the work of designing and creating large structures') print(cmd) - elif 'What do you mean by confusion matrix?' in command: + + elif 'What Engineers do?' in command: + cmd = talk('Everything except enginnering!') + print(cmd) + + elif 'What do you mean by confusion matrix?' in command: cmd = talk('A confusion matrix (or error matrix) is a specific table that is used to measure the performance of an algorithm. It is mostly used in supervised learning; in unsupervised learning, it’s called the matching matrix.') print(cmd) elif 'Where do you live?' in command: @@ -335,7 +340,11 @@ def call_Anuja(): elif 'Recommend me some good frontend development couses' in command: cmd = talk('You can get the some amazing courses over udemy and Freecodecamp, here are some!!') webbrowser.open("https://www.onlinecoursereport.com/rankings/best-front-end-development-course/") - print('Here: \'https://www.onlinecoursereport.com/rankings/best-front-end-development-course/\'') + print('Here: \'https://www.onlinecoursereport.com/rankings/best-front-end-development-course/\'') + + elif 'Tell me a motivation quote' in command: + cmd = talk('Work is the only thing i love!') + print(cmd) else: default = talk('I am sorry, I did not understand ') From d62c34546143b68556050478da2f6778d0c217e6 Mon Sep 17 00:00:00 2001 From: Neesham Date: Tue, 25 Oct 2022 12:54:54 +0530 Subject: [PATCH 2/2] Added new commands --- Alexa.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Alexa.py b/Alexa.py index 1748de8..d44944b 100644 --- a/Alexa.py +++ b/Alexa.py @@ -88,7 +88,7 @@ def call_Anuja(): cmd = talk('the work of designing and creating large structures') print(cmd) - elif 'What Engineers do?' in command: + elif 'What do engineers do?' in command: cmd = talk('Everything except enginnering!') print(cmd) @@ -342,7 +342,7 @@ def call_Anuja(): webbrowser.open("https://www.onlinecoursereport.com/rankings/best-front-end-development-course/") print('Here: \'https://www.onlinecoursereport.com/rankings/best-front-end-development-course/\'') - elif 'Tell me a motivation quote' in command: + elif 'Tell me a motivational quote' in command: cmd = talk('Work is the only thing i love!') print(cmd)