mirror of
https://github.com/hemna/aprsd-telegram-plugin.git
synced 2024-11-21 15:51:55 -05:00
Use the pbr version of the package as plugin version
This commit is contained in:
parent
cac8807074
commit
1dc0744ac0
@ -0,0 +1,4 @@
|
||||
import pbr.version
|
||||
|
||||
|
||||
__version__ = pbr.version.VersionInfo("aprsd_telegram_plugin").version_string()
|
@ -6,6 +6,8 @@ import time
|
||||
from aprsd import messaging, objectstore, plugin, threads, trace
|
||||
from telegram.ext import Filters, MessageHandler, Updater
|
||||
|
||||
import aprsd_telegram_plugin
|
||||
|
||||
|
||||
LOG = logging.getLogger("APRSD")
|
||||
|
||||
@ -65,7 +67,7 @@ class TelegramUsers(objectstore.ObjectStoreMixin):
|
||||
|
||||
class TelegramChatPlugin(plugin.APRSDRegexCommandPluginBase):
|
||||
|
||||
version = "1.0"
|
||||
version = aprsd_telegram_plugin.__version__
|
||||
# Look for any command that starts with w or W
|
||||
command_regex = "^[tT][gG]"
|
||||
# the command is for ?
|
||||
|
Loading…
Reference in New Issue
Block a user