2026-02-03 20:45:02 -06:00
|
|
|
#pragma once
|
2026-02-04 08:56:50 -06:00
|
|
|
#include "configuration.h"
|
2026-02-03 20:45:02 -06:00
|
|
|
#if !MESHTASTIC_EXCLUDE_REPLYBOT
|
|
|
|
|
#include "SinglePortModule.h"
|
|
|
|
|
#include "mesh/generated/meshtastic/mesh.pb.h"
|
|
|
|
|
|
|
|
|
|
class ReplyBotModule : public SinglePortModule
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
ReplyBotModule();
|
|
|
|
|
void setup() override;
|
|
|
|
|
bool wantPacket(const meshtastic_MeshPacket *p) override;
|
|
|
|
|
ProcessMessage handleReceived(const meshtastic_MeshPacket &mp) override;
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
bool isCommand(const char *msg) const;
|
|
|
|
|
void sendDm(const meshtastic_MeshPacket &rx, const char *text);
|
|
|
|
|
};
|
|
|
|
|
#endif // MESHTASTIC_EXCLUDE_REPLYBOT
|