From 007386505ab539200b8eef438250bc73dac0079f Mon Sep 17 00:00:00 2001 From: Hemna Date: Tue, 7 Jan 2025 10:22:01 -0500 Subject: [PATCH] updated plugin example --- examples/plugins/example_plugin.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/plugins/example_plugin.py b/examples/plugins/example_plugin.py index 04ea2ce..8ca5e0a 100644 --- a/examples/plugins/example_plugin.py +++ b/examples/plugins/example_plugin.py @@ -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