Extract bot logic from MyMesh into MyMeshBot.h

Move tryBotReplyDM() and tryBotReplyChannel() implementations to
MyMeshBot.h (included at end of MyMesh.cpp). onMessageRecv and
onChannelMessageRecv now contain only a single-line call each,
minimising the diff against upstream in those methods.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Jakub
2026-05-13 21:09:47 +02:00
co-authored by Claude Sonnet 4.6
parent d51d8c0a75
commit dd2c09174f
3 changed files with 73 additions and 60 deletions
+3
View File
@@ -179,6 +179,9 @@ public:
#endif
private:
void tryBotReplyDM(const ContactInfo& from, const char* text);
void tryBotReplyChannel(uint8_t channel_idx, const char* text);
void writeOKFrame();
void writeErrFrame(uint8_t err_code);
void writeDisabledFrame();