version.py 269 B

12345678910111213
  1. """Represents current userbot version"""
  2. __version__ = (1, 5, 2)
  3. import git
  4. import os
  5. try:
  6. branch = git.Repo(
  7. path=os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
  8. ).active_branch.name
  9. except Exception:
  10. branch = "master"