import datetime
import pywhatkit
def process_command(command):
if "time" in command:
now = datetime.datetime.now().strftime("%H:%M")
speak(f"The time is {now}")
elif "search for" in command:
query = command.replace("search for", "").strip()
speak(f"Searching for {query}")
pywhatkit.search(query)
elif "play" in command:
song = command.replace("play", "").strip()
speak(f"Playing {song}")
pywhatkit.playonyt(song)
else:
speak("I'm sorry, I can't perform that task yet.")
Integrate a weather API (e.g., OpenWeatherMap) to fetch current weather information.