mirror of https://github.com/coddrago/Heroku
Update hikka_info.py
parent
572dbacd95
commit
9ac4ca8d5d
|
@ -93,7 +93,7 @@ class HikkaInfoMod(loader.Module):
|
||||||
branch=version.branch,
|
branch=version.branch,
|
||||||
hostname=subprocess.run(['hostname'], stdout=subprocess.PIPE).stdout.decode().strip(),
|
hostname=subprocess.run(['hostname'], stdout=subprocess.PIPE).stdout.decode().strip(),
|
||||||
user=subprocess.run(['whoami'], stdout=subprocess.PIPE).stdout.decode().strip(),
|
user=subprocess.run(['whoami'], stdout=subprocess.PIPE).stdout.decode().strip(),
|
||||||
ping=round((time.perf_counter_ns() - time.perf_counter_ns()) / 10**6, 3),
|
ping=round((time.perf_counter_ns() - start) / 10**6, 3),
|
||||||
)
|
)
|
||||||
if self.config["custom_message"]
|
if self.config["custom_message"]
|
||||||
else (
|
else (
|
||||||
|
@ -167,3 +167,5 @@ class HikkaInfoMod(loader.Module):
|
||||||
|
|
||||||
self.config["custom_message"] = args
|
self.config["custom_message"] = args
|
||||||
await utils.answer(message, self.strings("setinfo_success"))
|
await utils.answer(message, self.strings("setinfo_success"))
|
||||||
|
|
||||||
|
start = time.perf_counter_ns()
|
||||||
|
|
Loading…
Reference in New Issue