mirror of https://github.com/coddrago/Heroku
Update hikka_info.py
parent
7db7a430e5
commit
7486283f6c
|
@ -10,6 +10,7 @@ from hikkatl.utils import get_display_name
|
||||||
|
|
||||||
from .. import loader, utils, version
|
from .. import loader, utils, version
|
||||||
from ..inline.types import InlineQuery
|
from ..inline.types import InlineQuery
|
||||||
|
import subprocess
|
||||||
|
|
||||||
|
|
||||||
@loader.tds
|
@loader.tds
|
||||||
|
@ -89,6 +90,7 @@ class HikkaInfoMod(loader.Module):
|
||||||
cpu_usage=utils.get_cpu_usage(),
|
cpu_usage=utils.get_cpu_usage(),
|
||||||
ram_usage=f"{utils.get_ram_usage()} MB",
|
ram_usage=f"{utils.get_ram_usage()} MB",
|
||||||
branch=version.branch,
|
branch=version.branch,
|
||||||
|
hostname=subprocess.run(['hostname'], capture_output=True).stdout.decode().strip()
|
||||||
)
|
)
|
||||||
if self.config["custom_message"]
|
if self.config["custom_message"]
|
||||||
else (
|
else (
|
||||||
|
@ -125,6 +127,7 @@ class HikkaInfoMod(loader.Module):
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
async def info(self, _: InlineQuery) -> dict:
|
async def info(self, _: InlineQuery) -> dict:
|
||||||
"""Send userbot info"""
|
"""Send userbot info"""
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue