diff --git a/custom/hellowold.py b/custom/hellowold.py new file mode 100644 index 000000000..be8ed317e --- /dev/null +++ b/custom/hellowold.py @@ -0,0 +1,18 @@ +from plugin import plugin +import os + +@plugin("infob17060") +def helloworld(jarvis,s): + """Repeats what you type""" + jarvis.say("Welcome to the info plugin of Yash Khanna roll num B17070.\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("Yash Khanna") + if(inf=="H"): + jarvis.say("Jhajjar") + if(inf=="S"): + jarvis.say("Kholi") + if(inf=="M"): + jarvis.say("jskds") + if(inf=="P"): + os.system("python /local/user/Desktop/lab7/Jarvis/b17070.py") \ No newline at end of file