pull/1/head
hikariatama 2022-11-24 11:10:25 +00:00
parent faec12364b
commit ae6a3627b9
2 changed files with 3 additions and 7 deletions

View File

@ -2041,7 +2041,7 @@ class HikkaSettingsMod(loader.Module):
}
@loader.command()
async def invoke(self, message: Message):
async def invokecmd(self, message: Message):
"""<module or `core` for built-in methods> <method> - Only for debugging purposes. DO NOT USE IF YOU'RE NOT A DEVELOPER
"""
args = utils.get_args_raw(message)

View File

@ -6,7 +6,6 @@
import os
import psutil
import pyrogram
import telethon
from telethon.extensions.html import CUSTOM_EMOJIS
@ -780,12 +779,9 @@ class CoreMod(loader.Module):
)
async def hikkacmd(self, message: Message):
"""Get Hikka version"""
current_process = psutil.Process(os.getpid())
mem = current_process.memory_percent()
for child in current_process.children(recursive=True):
mem += child.memory_percent()
await utils.answer(
await utils.answer_file(
message,
"https://github.com/hikariatama/assets/raw/master/hikka_cat_banner.mp4",
self.strings("hikka").format(
(
(