Jarvis handles a set of conversational and informational commands out of the box — look up any topic on Wikipedia, hear today’s date and time spoken aloud, or get a friendly response when you just want to check in. Wikipedia lookups and speech recognition both require an active internet connection; casual responses work fully offline.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Harsha200105/DesktopAssistant/llms.txt
Use this file to discover all available pages before exploring further.
The date and time commands are implemented only in
Jarvis2.py (the Ubuntu version). They are not available in Jarvis2_4windows.py (the Windows version).Wikipedia lookups
Say “wikipedia [topic]” to get a spoken summary of any article. Jarvis strips the trigger word from your query, fetches the first two sentences of the Wikipedia article, and speaks them back.In
Jarvis2_4windows.py, command_wikipedia is called as command_wikipedia(speak, debug, query) — passing the speak function as the first argument. The function definition in commands.py declares command_wikipedia(debug, query) (two parameters). The speak import from actions is used directly inside the function body.wikipedia.summary() call uses the wikipedia Python package with sentences=2 so the response stays concise enough to speak. If the topic is ambiguous or not found, the library raises a wikipedia.exceptions.DisambiguationError or wikipedia.exceptions.PageError — Jarvis will not catch these silently in the current implementation, so try rephrasing with a more specific topic name.
Wikipedia lookups require an active internet connection. If the request fails, Jarvis will raise an unhandled exception. Make sure you are online before using this command.
Current date
Say “date” to hear today’s date. Jarvis formatsdatetime.datetime.now() using Python’s strftime mini-language and speaks the result:
Monday, June 09, 2025
The format string %A, %B %d, %Y expands to the full weekday name, full month name, zero-padded day, and four-digit year.
Current time
Say “time” to hear the current time in 12-hour format:02 45 PM
The format string %I %M %p gives the 12-hour clock hour, minutes, and the AM/PM designator — separated by spaces so the TTS engine reads each part naturally.
”What’s up”
Say “what’s up” to get a random casual reply. Jarvis picks one response at random from a fixed list every time:command_whatsup() is triggered when "what's up" is detected in the recognized query.