diff --git a/modules/README.md b/modules/README.md index b380c0b..b8cc901 100644 --- a/modules/README.md +++ b/modules/README.md @@ -368,7 +368,7 @@ The `map` command provides a comprehensive location management system that allow - **Show Help** ``` - map ? + map help ``` Displays usage instructions for all map commands. @@ -482,7 +482,7 @@ Configure in `[location]` section of `config.ini`: - `public_location_admin_manage` - If `True`, only administrators can save public locations (default: `False`) - `delete_public_locations_admins_only` - If `True`, only administrators can delete locations (default: `False`) -**Tip:** Use `map ?` at any time to see these instructions in the bot. +**Tip:** Use `map help` at any time to see these instructions in the bot. --- diff --git a/modules/locationdata.py b/modules/locationdata.py index 99c705a..61fb7b4 100644 --- a/modules/locationdata.py +++ b/modules/locationdata.py @@ -1665,24 +1665,16 @@ def mapHandler(userID, deviceID, channel_number, message, snr, rssi, hop): """ command = str(command) # Ensure command is always a string - if command.strip().lower() == "?": + if command.strip().lower() == "help": return ( "🗺️ Map Commands:\n" - " map save [description] - Save private location\n" - " map save public [desc] - Save public location (all can see)\n" - " map - Get heading to saved location\n" - " map public - Get heading to public location\n" - " map delete - Delete a location\n" - " map list - List all saved locations\n" - " map log - Log location to CSV (legacy)\n" - "Examples:\n" - " map save BaseCamp Main base camp\n" - " map save public BaseCamp Public location\n" - " map BaseCamp - Gets your private or public\n" - " map public BaseCamp - Gets public (even if you have private)\n" - " map delete BaseCamp - Delete a location\n" - " map list\n" - " map log Found a new mesh node" + " map save [description] - Save private location\n" + " map save public [desc] - Save public location (all can see)\n" + " map - Get heading to saved location\n" + " map public - Get heading to public location\n" + " map delete - Delete a location\n" + " map list - List all saved locations\n" + " map log - Log location to CSV (legacy)\n" ) # Handle "save" command @@ -1893,7 +1885,7 @@ def mapHandler(userID, deviceID, channel_number, message, snr, rssi, hop): return f"🚫Location '{location_name}' not found. Use 'map list' to see available locations." # Empty command - show help - return "🗺️Use 'map ?' for help" + return "🗺️Use 'map help' for help" # Initialize the locations database when module is imported initialize_locations_database()