From 14861122c91bb72de0c65f5a549f12db1a3e3776 Mon Sep 17 00:00:00 2001 From: Jaideep Date: Wed, 25 Sep 2019 20:27:40 +0530 Subject: [PATCH 1/2] added infob17045 --- jarviscli/plugins/code_python.py | 1 + jarviscli/plugins/infob17045.py | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 jarviscli/plugins/code_python.py create mode 100644 jarviscli/plugins/infob17045.py diff --git a/jarviscli/plugins/code_python.py b/jarviscli/plugins/code_python.py new file mode 100644 index 000000000..6340a0b21 --- /dev/null +++ b/jarviscli/plugins/code_python.py @@ -0,0 +1 @@ +print("Python code is running") \ No newline at end of file diff --git a/jarviscli/plugins/infob17045.py b/jarviscli/plugins/infob17045.py new file mode 100644 index 000000000..adf7c2ab6 --- /dev/null +++ b/jarviscli/plugins/infob17045.py @@ -0,0 +1,20 @@ +from plugin import plugin +import os + +@plugin("infob17045") +def helloworld(jarvis,s): + """Repeats what you type""" + jarvis.say("Welcome to the info plugin of roll num .\n\nPlease select one of the options below:\n\n[F]ull name // prints your full name\t\t\t\n[H]ometown // prints your hometown \t\t\t\nFavourite [M]ovie // prints your fav movie \t\t\t\nFavourite [S]portsperson // prints your fav sportsperson \t\t\t\nLaunch [P]ython program written by me // launch a (short) // python program\n") + inf = jarvis.input() + if(inf=="F"): + jarvis.say("Jaideep") + elif(inf=="H"): + jarvis.say("Bikaner") + elif(inf=="S"): + jarvis.say("Cristiano Ronaldo") + elif(inf=="M"): + jarvis.say("Inception") + elif(inf=="P"): + os.system("python .py") + + From 2462b9ad592d4a929d606acbda2b7bb723b542bd Mon Sep 17 00:00:00 2001 From: Jaideep Date: Wed, 25 Sep 2019 20:30:06 +0530 Subject: [PATCH 2/2] added infob17045 --- jarviscli/plugins/infob17045.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jarviscli/plugins/infob17045.py b/jarviscli/plugins/infob17045.py index adf7c2ab6..d52550aaa 100644 --- a/jarviscli/plugins/infob17045.py +++ b/jarviscli/plugins/infob17045.py @@ -15,6 +15,6 @@ def helloworld(jarvis,s): elif(inf=="M"): jarvis.say("Inception") elif(inf=="P"): - os.system("python .py") + os.system("python /local/user/Jarvis/jarviscli/plugins/code_python.py")