1
0
mirror of https://github.com/craigerl/aprsd.git synced 2026-06-03 14:44:47 -04:00

updated plugin example

This commit is contained in:
2025-01-07 10:22:01 -05:00
parent 7f2c1d7124
commit 007386505a
+2 -3
View File
@@ -1,7 +1,6 @@
import logging
from aprsd import plugin
from aprsd import packets, plugin
LOG = logging.getLogger("APRSD")
@@ -14,7 +13,7 @@ class HelloPlugin(plugin.APRSDRegexCommandPluginBase):
command_regex = "^[hH]"
command_name = "hello"
def process(self, packet):
def process(self, packet: packets.MessagePacket):
LOG.info("HelloPlugin")
reply = f"Hello '{packet.from_call}'"
return reply