1
0
mirror of https://github.com/craigerl/aprsd.git synced 2025-04-19 09:49:01 -04:00

updated plugin example

This commit is contained in:
Hemna 2025-01-07 10:22:01 -05:00
parent 7f2c1d7124
commit 007386505a

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