mirror of https://github.com/coddrago/Heroku
20 lines
522 B
Python
20 lines
522 B
Python
"""Represents current userbot version"""
|
|
# ©️ Dan Gazizullin, 2021-2023
|
|
# This file is a part of Hikka Userbot
|
|
# 🌐 https://github.com/hikariatama/Hikka
|
|
# You can redistribute it and/or modify it under the terms of the GNU AGPLv3
|
|
# 🔑 https://www.gnu.org/licenses/agpl-3.0.html
|
|
|
|
__version__ = (1, 6, 5)
|
|
|
|
import os
|
|
|
|
import git
|
|
|
|
try:
|
|
branch = git.Repo(
|
|
path=os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
|
|
).active_branch.name
|
|
except Exception:
|
|
branch = "master"
|