Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions jarviscli/plugins/code_python.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
print("Python code is running")
20 changes: 20 additions & 0 deletions jarviscli/plugins/infob17045.py
Original file line number Diff line number Diff line change
@@ -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 <your_name> roll num <your_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")