added ToThost, aeza in .info, update telethon version and fix some bugs

added ToThost, aeza in .info
pull/13/head
Who? 2024-11-13 16:17:17 +07:00 committed by GitHub
commit 0902043c22
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 16 additions and 0 deletions

View File

@ -1,4 +1,11 @@
# Hikka Changelog
## 🌑 Hikka 1.6.6
- add ToThost, oracle, AWS, aeza and serv00 detection
- fixed some bugs
- update telethon version to 1.37.0
- removed all languages excluding: Russian, English, Ukrainian
## 🌑 Hikka 1.6.6 beta
- formatting ruff

View File

@ -96,6 +96,8 @@ IS_HIKKAHOST = "HIKKAHOST" in os.environ
IS_ORACLE = "ORACLE_OS" in os.environ
IS_AWS = "AWS_OS" in os.environ
IS_SERV00 = "serv00" in socket.gethostname()
IS_TOTHOST = "tothost" in socket.gethostname()
IS_AEZA = "aeza" in socket.gethostname()
IS_WSL = False
with contextlib.suppress(Exception):
from platform import uname

View File

@ -74,6 +74,7 @@ class HikkaInfoMod(loader.Module):
("🐈‍⬛", "<emoji document_id=6334750507294262724>🐈‍⬛</emoji>"),
("✌️", "<emoji document_id=5469986291380657759>✌️</emoji>"),
("💎", "<emoji document_id=5471952986970267163>💎</emoji>"),
("🛡", "<emoji document_id=5287571024500498635>☁️</emoji>"),
]:
platform = platform.replace(emoji, icon)

View File

@ -917,6 +917,12 @@ def get_named_platform() -> str:
if main.IS_SERV00:
return "💎 Serv00"
if main.IS_TOTHOST:
return "☁️ ToTHost"
if main.IS_AEZA:
return "🛡 Aeza"
if main.IS_GOORM:
return "🦾 GoormIDE"