version.py 522 B

1234567891011121314151617181920
  1. """Represents current userbot version"""
  2. # ©️ Dan Gazizullin, 2021-2023
  3. # This file is a part of Hikka Userbot
  4. # 🌐 https://github.com/hikariatama/Hikka
  5. # You can redistribute it and/or modify it under the terms of the GNU AGPLv3
  6. # 🔑 https://www.gnu.org/licenses/agpl-3.0.html
  7. __version__ = (1, 6, 3)
  8. import os
  9. import git
  10. try:
  11. branch = git.Repo(
  12. path=os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
  13. ).active_branch.name
  14. except Exception:
  15. branch = "master"