updated the map help command.

This commit is contained in:
peanutyost
2025-12-30 07:42:10 -06:00
parent 4fd35dc004
commit 157176acf7
2 changed files with 11 additions and 19 deletions
+2 -2
View File
@@ -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.
---
+9 -17
View File
@@ -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 <name> [description] - Save private location\n"
" map save public <name> [desc] - Save public location (all can see)\n"
" map <name> - Get heading to saved location\n"
" map public <name> - Get heading to public location\n"
" map delete <name> - Delete a location\n"
" map list - List all saved locations\n"
" map log <description> - 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 <name> [description] - Save private location\n"
" map save public <name> [desc] - Save public location (all can see)\n"
" map <name> - Get heading to saved location\n"
" map public <name> - Get heading to public location\n"
" map delete <name> - Delete a location\n"
" map list - List all saved locations\n"
" map log <description> - 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()