mirror of https://github.com/coddrago/Heroku
Update utils.py
parent
162dd3427a
commit
e3d5c5a689
|
@ -712,7 +712,7 @@ async def invite_inline_bot(
|
||||||
channel=peer,
|
channel=peer,
|
||||||
user_id=client.loader.inline.bot_username,
|
user_id=client.loader.inline.bot_username,
|
||||||
admin_rights=ChatAdminRights(ban_users=True),
|
admin_rights=ChatAdminRights(ban_users=True),
|
||||||
rank="Hikka",
|
rank="Heroku",
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1285,12 +1285,12 @@ def get_git_hash() -> typing.Union[str, bool]:
|
||||||
|
|
||||||
def get_commit_url() -> str:
|
def get_commit_url() -> str:
|
||||||
"""
|
"""
|
||||||
Get current Hikka git commit url
|
Get current Heroku git commit url
|
||||||
:return: Git commit url
|
:return: Git commit url
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
hash_ = get_git_hash()
|
hash_ = get_git_hash()
|
||||||
return f'<a href="https://github.com/coddrago/Hikka/commit/{hash_}">#{hash_[:7]}</a>'
|
return f'<a href="https://github.com/coddrago/Heroku/commit/{hash_}">#{hash_[:7]}</a>'
|
||||||
except Exception:
|
except Exception:
|
||||||
return "Unknown"
|
return "Unknown"
|
||||||
|
|
||||||
|
@ -1580,7 +1580,7 @@ def get_git_info() -> typing.Tuple[str, str]:
|
||||||
hash_ = get_git_hash()
|
hash_ = get_git_hash()
|
||||||
return (
|
return (
|
||||||
hash_,
|
hash_,
|
||||||
f"https://github.com/coddrago/Hikka/commit/{hash_}" if hash_ else "",
|
f"https://github.com/coddrago/Heroku/commit/{hash_}" if hash_ else "",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue