Update hikka_info.py

pull/36/head
Plovchikdeval 2024-12-16 09:30:18 +05:00 committed by GitHub
parent 6b2eef8fc1
commit 0ada430751
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -90,7 +90,8 @@ class HikkaInfoMod(loader.Module):
cpu_usage=utils.get_cpu_usage(),
ram_usage=f"{utils.get_ram_usage()} MB",
branch=version.branch,
hostname=subprocess.run(['hostname'], capture_output=True).stdout.decode().strip()
hostname=subprocess.run(['hostname'], stdout=subprocess.PIPE).stdout.decode().strip(),
user=subprocess.run(['whoami'], stdout=subprocess.PIPE).stdout.decode().strip(),
)
if self.config["custom_message"]
else (