Plugin gets the version from pbr version now

This commit is contained in:
Hemna 2020-12-20 15:24:45 -05:00
parent 94e2101b46
commit 2a7167745b
2 changed files with 4 additions and 1 deletions

View File

@ -4,6 +4,7 @@ CHANGES
v1.0.2
------
* cleaned up dev reqs
* Reduced the shit
v1.0.1

View File

@ -4,6 +4,8 @@ from aprsd import plugin
from slack_sdk import WebClient
from slack_sdk.errors import SlackApiError
import aprsd_slack_plugin
LOG = logging.getLogger("APRSD")
@ -38,7 +40,7 @@ class SlackCommandPlugin(plugin.APRSDPluginBase):
channel: <channel name here>
"""
version = "1.0"
version = aprsd_slack_plugin.__version__
# matches any string starting with h or H
command_regex = "^[lL]"