mirror of
https://github.com/hemna/aprsd-slack-plugin.git
synced 2026-02-22 17:20:15 -05:00
change command to process
This commit is contained in:
parent
5157eb7aa1
commit
a21fe72f55
@ -60,10 +60,10 @@ class SlackMessagePlugin(
|
||||
else:
|
||||
self.enabled = True
|
||||
|
||||
def command(self, packet):
|
||||
def process(self, packet):
|
||||
LOG.info(f"SlackMessagePlugin '{message}'")
|
||||
message = packet.message_text
|
||||
fromcall = packet.from_call
|
||||
LOG.info(f"SlackMessagePlugin '{message}'")
|
||||
|
||||
# optional second argument is a callsign to search
|
||||
a = re.search(r"^.*\s+(.*)", message)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user