mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-08-07 01:13:14 +02:00
updated the map help command.
This commit is contained in:
+2
-2
@@ -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
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user