mirror of https://github.com/coddrago/Heroku
1.6.0
parent
faec12364b
commit
ae6a3627b9
|
@ -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)
|
||||
|
|
|
@ -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(
|
||||
(
|
||||
(
|
||||
|
|
Loading…
Reference in New Issue