diff --git a/aprsd_telegram_plugin/__init__.py b/aprsd_telegram_plugin/__init__.py index e69de29..3a0911d 100644 --- a/aprsd_telegram_plugin/__init__.py +++ b/aprsd_telegram_plugin/__init__.py @@ -0,0 +1,4 @@ +import pbr.version + + +__version__ = pbr.version.VersionInfo("aprsd_telegram_plugin").version_string() diff --git a/aprsd_telegram_plugin/telegram.py b/aprsd_telegram_plugin/telegram.py index a3d54c6..5df07e2 100644 --- a/aprsd_telegram_plugin/telegram.py +++ b/aprsd_telegram_plugin/telegram.py @@ -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 ?