mirror of https://github.com/coddrago/Heroku
added: userland to info and emoji for this
commit
65349a6f42
|
@ -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
|
||||
|
|
|
@ -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 (
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue