1
0
mirror of https://github.com/craigerl/aprsd.git synced 2026-06-10 18:08:44 -04:00

Fixed the usage string after plugins introduced

This patch fixes the Usage string for a call message
that isn't matched by any plugin.

Plugin object now must impleent a 'command_name' attribute
that is the usage string for that plugin.
This commit is contained in:
2020-12-13 21:31:01 -05:00
parent ccad85a8bf
commit 2873e35f14
3 changed files with 34 additions and 8 deletions
+1
View File
@@ -11,6 +11,7 @@ class HelloPlugin(plugin.APRSDPluginBase):
version = "1.0"
# matches any string starting with h or H
command_regex = "^[hH]"
command_name = "hello"
def command(self, fromcall, message, ack):
LOG.info("HelloPlugin")