added: userland to info and emoji for this

pull/60/head
Who? 2025-01-03 18:12:48 +10:00 committed by GitHub
commit 65349a6f42
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 0 deletions

View File

@ -99,6 +99,7 @@ IS_SERV00 = "serv00" in socket.gethostname()
IS_TOTHOST = "TOTHOST" in os.environ
IS_AEZA = "aeza" in socket.gethostname()
IS_DJHOST = "IS_DJHOST" in os.environ
IS_USERLAND = "userland" in os.environ
IS_WSL = False
with contextlib.suppress(Exception):
from platform import uname

View File

@ -83,6 +83,7 @@ class HerokuInfoMod(loader.Module):
("💘", "<emoji document_id=5452140079495518256>💘</emoji>"),
("🌼", "<emoji document_id=5224219153077914783>❤️</emoji>"),
("🎡", "<emoji document_id=5226711870492126219>🎡</emoji>"),
("🐧", "<emoji document_id=5361541227604878624>🐧</emoji>")
]:
platform = platform.replace(emoji, icon)
return (

View File

@ -922,6 +922,9 @@ def get_named_platform() -> str:
if main.IS_AWS:
return "😶‍🌫️ AWS"
if main.IS_USERLAND:
return "🐧 UserLand"
if main.IS_SERV00:
return "💎 Serv00"
@ -977,6 +980,9 @@ def get_platform_emoji() -> str:
if main.IS_DJHOST:
return BASE.format(5116472489639150735)
if main.IS_USERLAND:
return BASE.format(5458877818031077824)
if main.IS_ORACLE:
return BASE.format(5195381467047288408)