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..d52550aaa --- /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 /local/user/Jarvis/jarviscli/plugins/code_python.py") + +