Skip to content
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
27 changes: 27 additions & 0 deletions jarviscli/plugins/infob17053.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
from plugin import plugin
import random

def some_prog():
print("Some Silly Program")
for i in range(random.randint(1, 10)):
print("Do nothing random no of times: This is",i+1,"time")

@plugin("infob17053")
class infob17053:

def __call__(self, jarvis, s):
x = "Welcome to the info plugin of Purushottam Sinha roll num b17053. Please select one of the options below:\n [F]ull name // prints your full name\n [H]ometown // prints your hometownFavourite \n [M]ovie // prints your fav movieFavourite \n [S]portsperson // prints your fav sportspersonLaunch \n [P]ython program written by me // launch a (short)// python program\n"
u_input = jarvis.input(x)

if u_input == 'F':
jarvis.say("Purushottam Sinha")
elif u_input == 'H':
jarvis.say("BiharSharif")
elif u_input == 'M':
jarvis.say("3 Idiot")
elif u_input == 'S':
jarvis.say("MS Dhoni")
elif u_input == 'P':
some_prog()
else:
jarvis.say("Invalid Input")