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

B17057 #34

Open
wants to merge 8 commits into
base: cs308
Choose a base branch
from
Open
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
36 changes: 36 additions & 0 deletions jarviscli/plugins/infob17057.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
from plugin import plugin
from colorama import Fore
import time

@plugin("infob17057")
def infob17057(jarvis, s):
"""Command by B17057 ~ Saransh Sharma"""
# Menu
jarvis.say("Welcome to the info plugin of Saransh Sharma roll num B17057. Please select one of the options below:")
jarvis.say(Fore.CYAN+"[F]ull name")
jarvis.say(Fore.CYAN+"[H]ometown")
jarvis.say(Fore.CYAN+"Favourite [M]ovie")
jarvis.say(Fore.CYAN+"Favourite [S]portsperson")
jarvis.say(Fore.CYAN+"Launch [P]ython program written by me")
inp = jarvis.input()

# Impementation of Menu
if inp == 'F' or inp == 'f':
jarvis.say("Hi! My name is Saransh Sharma.")
elif inp == 'H' or inp == 'h':
jarvis.say("I am from Delhi.")
elif inp == 'M' or inp == 'm':
jarvis.say("Well, that would be Megamind")
elif inp == 'S' or inp == 's':
jarvis.say("LeBron James")
elif inp == 'P' or inp == 'p':
jarvis.say("Sorry")
i = int(1) #Program
while True:
jarvis.say(
Fore.GREEN
+str(i))
time.sleep(1)
i = i + 1
else:
jarvis.say("Incorrect Selection")