Compare commits
2 Commits
3bfc0188c0
...
8367cc8fd2
Author | SHA1 | Date |
---|---|---|
Hemna | 8367cc8fd2 | |
Hemna | 7c28bb9886 |
|
@ -46,7 +46,7 @@ class SlackMessagePlugin(base_plugin.SlackPluginBase):
|
||||||
version = aprsd_slack_plugin.__version__
|
version = aprsd_slack_plugin.__version__
|
||||||
|
|
||||||
# matches any string starting with h or H
|
# matches any string starting with h or H
|
||||||
command_regex = "^[sS]"
|
command_regex = r"^([s]|[s]\s|slack)"
|
||||||
command_name = "message-slack"
|
command_name = "message-slack"
|
||||||
|
|
||||||
def setup(self):
|
def setup(self):
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from aprsd import messaging, packets, plugin
|
from aprsd import packets, plugin
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
|
|
||||||
import aprsd_slack_plugin
|
import aprsd_slack_plugin
|
||||||
|
@ -53,4 +53,4 @@ class SlackNotifyPlugin(
|
||||||
self.swc.chat_postMessage(**message)
|
self.swc.chat_postMessage(**message)
|
||||||
|
|
||||||
# Don't have aprsd try and send a reply
|
# Don't have aprsd try and send a reply
|
||||||
return messaging.NULL_MESSAGE
|
return packets.NULL_MESSAGE
|
||||||
|
|
Loading…
Reference in New Issue