From 96fa4330ba18ed3746151d7df437411567b78e69 Mon Sep 17 00:00:00 2001 From: Jason Martin Date: Fri, 19 May 2023 22:53:15 +0000 Subject: [PATCH] Example plugin wrong function The example plugin, used verbatim, complains about an abstract class. The interface requires 'process' not 'command'. --- examples/plugins/example_plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/plugins/example_plugin.py b/examples/plugins/example_plugin.py index 0a3c75e..04ea2ce 100644 --- a/examples/plugins/example_plugin.py +++ b/examples/plugins/example_plugin.py @@ -14,7 +14,7 @@ class HelloPlugin(plugin.APRSDRegexCommandPluginBase): command_regex = "^[hH]" command_name = "hello" - def command(self, packet): + def process(self, packet): LOG.info("HelloPlugin") reply = f"Hello '{packet.from_call}'" return reply