Update hikka_info.py

pull/40/head
Who? 2024-12-21 13:54:23 +07:00 committed by GitHub
parent 21f4d34cde
commit f81977045b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -92,6 +92,8 @@ class HikkaInfoMod(loader.Module):
branch=version.branch,
hostname=subprocess.run(['hostname'], stdout=subprocess.PIPE).stdout.decode().strip(),
user=subprocess.run(['whoami'], stdout=subprocess.PIPE).stdout.decode().strip(),
start = time.perf_counter_ns()
ping=round((time.perf_counter_ns() - start) / 10**6, 3),
)
if self.config["custom_message"]
else (