Update utils.py

pull/28/head
Who? 2024-11-28 14:31:18 +07:00 committed by GitHub
parent 162dd3427a
commit e3d5c5a689
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions

View File

@ -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 "",
) )