Merge pull request #36 from Plovchikdeval/patch-3

Patch 3
pull/39/head
Who? 2024-12-16 11:33:19 +07:00 committed by GitHub
commit b7c72a71df
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 (