diff --git a/scripts/commands.py b/scripts/commands.py index f94fdc41..8ad95336 100644 --- a/scripts/commands.py +++ b/scripts/commands.py @@ -47,7 +47,7 @@ def get_command(response): def execute_command(command_name, arguments): try: if command_name == "google": - print("Using Google search method") + # Check if the Google API key is set and use the official search method # If the API key is not set or has only whitespaces, use the unofficial search method if cfg.google_api_key and (cfg.google_api_key.strip() if cfg.google_api_key else None):