mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-07-26 14:58:12 +00:00
The bot can now reply to a specific DM contact instead of a channel. UI (BotScreen): item 1 cycles through all channels followed by all DM contacts (ADV_TYPE_CHAT). The label switches between "Channel" / "Contact" and the value shows the channel or contact name. Left/right/enter navigate the combined list. Logic (MyMesh::onMessageRecv): when bot_target_type==1, match the trigger against incoming DM text and reply via sendMessage(). A 4-byte pubkey prefix identifies the target; all-zero prefix matches any DM sender. Persistence: bot_target_type and bot_dm_pubkey[4] appended to prefs with backward-compat read guard (old firmware defaults to channel mode). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>