Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

b17047 lab7 #22

Open
wants to merge 1 commit into
base: cs308
Choose a base branch
from
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/hello.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
print("Hello World")
25 changes: 25 additions & 0 deletions jarviscli/plugins/infob17047.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
from plugin import plugin
import os

@plugin("infob17047")
def infob17047(jarvis, s):
"""Repeats what you type"""
jarvis.say("Welcome to the info plugin of <your_name> roll num <your_roll_num>. Please select one of the options below:\n[F]ull name // prints your full name\n[H]ometown // prints your hometown\nFavourite [M]ovie // prints your fav movie\nFavourite [S]portsperson // prints your fav sportsperson\nLaunch [P]ython program written by me")
g = input("Enter your command : ")
s=str("F")
if(g==s):
jarvis.say("Kanika Gupta")

s=str("H")
if(g==s):
jarvis.say("Karnal")

s=str("M")
if(g==s):
jarvis.say("Shawshank")
s=str("S")
if(g==s):
jarvis.say("blabla")
s=str("P")
if(g==s):
os.system("python /local/user/Jarvis/jarviscli/plugins/hello.py")