diff --git a/misskaty/core/misskaty_patch/utils/__init__.py b/misskaty/core/misskaty_patch/utils/__init__.py index bffaad9d..92ff72bf 100644 --- a/misskaty/core/misskaty_patch/utils/__init__.py +++ b/misskaty/core/misskaty_patch/utils/__init__.py @@ -1,4 +1,4 @@ from .utils import PyromodConfig, patch, patchable -from .handle_error import handle_error +from .handler_error import handle_error from .admin_utils import check_rights, is_admin from .get_user import get_user \ No newline at end of file diff --git a/misskaty/plugins/dev.py b/misskaty/plugins/dev.py index 3650b47b..45ede409 100644 --- a/misskaty/plugins/dev.py +++ b/misskaty/plugins/dev.py @@ -56,6 +56,7 @@ __HELP__ = """ /unbanuser [chat id] - Unban user and make their can use bot again /gban - To Ban A User Globally. /ungban - To remove ban user globbaly. +/restart - update and restart bot. **For Public Use** /stats - Check statistic bot @@ -493,7 +494,7 @@ async def cmd_eval(self: Client, ctx: Message, strings) -> Optional[str]: # Update and restart bot -@app.on_message(filters.command(["update"], COMMAND_HANDLER) & filters.user(SUDO)) +@app.on_message(filters.command(["restart"], COMMAND_HANDLER) & filters.user(SUDO)) @use_chat_lang() async def update_restart(self: Client, ctx: Message, strings) -> "Message": msg = await ctx.reply_msg(strings("up_and_rest"))