Beispiel #1
0
 def help_update(self):
     """Prints help about update command"""
     print_say("location: Updates location.", self)
     print_say("system: Updates system.", self)
Beispiel #2
0
 def help_wiki(self):
     """Help for wiki"""
     print_say("Jarvis has now wiki feature", self)
     print_say("enter wiki search for searching related topics", self)
     print_say("enter wiki summary for getting summary of the topic", self)
     print_say("wiki content for full page article of topic", self)
Beispiel #3
0
 def help_tempconv(self):
     """Print help information for tempconv command."""
     print_say(
         "Convert temperature from Fahrenheit to Celsius and vice versa",
         self)
     print_say("Examples: 32f, 18C, -20F, -8c, 105.4F, -10.21C", self)
Beispiel #4
0
 def help_twitter(self):
     """help for twitter"""
     print_say("enter twitter and follow the instructions", self)
Beispiel #5
0
 def help_say(self):
     """Prints help text from say command."""
     print_say("Reads what is typed.")
Beispiel #6
0
 def help_shutdown(self):
     """Print help about shutdown command."""
     print_say("Shutdown the system.", self)
Beispiel #7
0
 def help_music(self):
     """Print help about music command."""
     print_say("Jarvis will find you the song you want", self)
     print_say("-- Example:", self)
     print_say("\tmusic wonderful tonight", self)
Beispiel #8
0
 def help_reboot(self):
     """Print help about reboot command."""
     print_say("Reboot the system.", self)
Beispiel #9
0
 def help_movie(self):
     """Print help about movie command."""
     print_say("Jarvis - movie command", self)
     print_say("List of commands:", self)
     print_say("movie cast", self)
     print_say("movie director", self)
     print_say("movie plot", self)
     print_say("movie producer", self)
     print_say("movie rating", self)
     print_say("movie year", self)
Beispiel #10
0
 def help_movies(self):
     """Print help about movies command."""
     print_say("Jarvis will find a good movie for you", self)
Beispiel #11
0
 def do_movie(self, s):
     """Jarvis will get movie details for you"""
     k = s.split(' ', 1)
     if k[0] == "cast":
         data = movie.cast(k[1])
         for d in data:
             print_say(d['name'], self)
     elif k[0] == "director":
         data = movie.director(k[1])
         for d in data:
             print_say(d['name'], self)
     elif k[0] == "plot":
         data = movie.plot(k[1])
         print_say(data, self)
     elif k[0] == "producer":
         data = movie.producer(k[1])
         for d in data:
             print_say(d['name'], self)
     elif k[0] == "rating":
         data = movie.rating(k[1])
         print_say(str(data), self)
     elif k[0] == "year":
         data = movie.year(k[1])
         print_say(str(data), self)
Beispiel #12
0
 def help_match(self):
     """Prints help about match command"""
     print_say("Matches a string pattern in a file using regex.", self)
     print_say("Type \"match\" and you'll be prompted.", self)
Beispiel #13
0
 def do_lyrics(self, s):
     # TODO: maybe add option to download lyrics not just print them there
     lyr = lyrics()
     response = lyr.find(s)
     print_say(response, self)
Beispiel #14
0
 def help_increase(self):
     """Print help about increase command."""
     print_say("volume: Increases your speaker's sound.", self)
Beispiel #15
0
 def help_near(self):
     """Print help about near command."""
     print_say("Jarvis can find what is near you!", self)
     print_say("-- Examples:", self)
     print_say("\trestaurants near me", self)
     print_say("\tmuseums near the eiffel tower", self)
Beispiel #16
0
 def help_quote(self):
     """Help for quote"""
     print_say("quote prints quote for the day for you", self)
Beispiel #17
0
 def help_news(self):
     """Print help about news command."""
     print_say("Time to get an update about the local news.", self)
     print_say(
         "Type \"news\" to choose your source or \"news quick\" for some headlines.",
         self)
Beispiel #18
0
 def help_remind(self):
     """Print help about remind command."""
     print_say("Handles reminders", self)
     print_say("add: adds a reminder", self)
     print_say("remove: removes a reminder", self)
     print_say("list: lists all reminders", self)
     print_say("clear: clears all reminders", self)
     print_say("-- Examples:", self)
     print_say("\tremind add 14:25 buy tomatoes", self)
     print_say("\tremind add 14:26 buy potatoes too", self)
     print_say("\tremind remove buy potatoes too", self)
     print_say("\tremind list", self)
     print_say("\tremind clear", self)
Beispiel #19
0
 def help_open(self):
     """Print help about open command."""
     print_say("camera: Jarvis will open the camera for you.", self)
Beispiel #20
0
 def help_screen(self):
     """Print help about screen command."""
     print_say("Turns off the screen instantly", self)
     print_say("-- Example:", self)
     print_say("screen off", self)
Beispiel #21
0
 def help_os(self):
     """Displays information about your operating system."""
     print_say("Displays information about your operating system.", self)
Beispiel #22
0
 def help_tell(self):
     """Print info about tell command"""
     print_say("Tell a joke about Chuck Norris", self)
Beispiel #23
0
 def help_pinpoint(self):
     """Print help about pinpoint command."""
     print_say("Jarvis will pinpoint your location.", self)
Beispiel #24
0
 def help_translate(self):
     """Print help for translate function"""
     print_say("translates from one language to another.", self)
Beispiel #25
0
 def help_play(self):
     """Print help about play command."""
     print_say("Jarvis will find you the song you want", self)
     print_say("-- Example:", self)
     print_say("\tplay eye of the tiger", self)
Beispiel #26
0
 def help_umbrella(self):
     """Print info about umbrella command."""
     print_say(
         "If you're leaving your place, Jarvis will inform you if you might need an umbrella or not.",
         self, Fore.BLUE)
Beispiel #27
0
 def help_q(self):
     """Closing Jarvis"""
     print_say("Closing Jarvis!!", self)
Beispiel #28
0
 def help_weather(self):
     """Prints help about weather command."""
     print_say(
         "Get information about today's weather in your current location.",
         self)
Beispiel #29
0
 def help_quit(self):
     """Closing Jarvis."""
     print_say("Close Jarvis", self)
Beispiel #30
0
 def default(self, data):
     """Jarvis let's you know if an error has occurred."""
     print_say("I could not identify your command...", self, Fore.RED)
Beispiel #31
0
 def help_how_are_you(self):
     """Print info about how_are_you command"""
     print_say("Jarvis will inform you about his status.", self)