mirror of
https://github.com/agessaman/meshcore-bot.git
synced 2026-04-25 08:42:06 +00:00
- Prefix command now falls back to local SQLite database when API is unavailable - Queries repeater_contacts table for repeaters matching prefix pattern - Uses public_key LIKE 'prefix%' to find repeaters by first two characters - Only returns active repeaters (is_active = 1) - Adds device type indicators: (Repeater) or (Room Server) - Response indicates data source: 'API cache' vs 'local database (offline mode)' - Updated help text to mention database fallback capability - Tested with sample data: correctly finds repeaters by prefix - Provides offline functionality when API is down or network unavailable - Maintains API-first approach with intelligent fallback