mirror of
https://github.com/craigerl/aprsd.git
synced 2024-10-31 15:07:13 -04:00
Example plugin wrong function
The example plugin, used verbatim, complains about an abstract class. The interface requires 'process' not 'command'.
This commit is contained in:
parent
4e99e30f16
commit
96fa4330ba
@ -14,7 +14,7 @@ class HelloPlugin(plugin.APRSDRegexCommandPluginBase):
|
|||||||
command_regex = "^[hH]"
|
command_regex = "^[hH]"
|
||||||
command_name = "hello"
|
command_name = "hello"
|
||||||
|
|
||||||
def command(self, packet):
|
def process(self, packet):
|
||||||
LOG.info("HelloPlugin")
|
LOG.info("HelloPlugin")
|
||||||
reply = f"Hello '{packet.from_call}'"
|
reply = f"Hello '{packet.from_call}'"
|
||||||
return reply
|
return reply
|
||||||
|
Loading…
Reference in New Issue
Block a user